Skip to content

fix(tui): keep task preview output fresh - #2973

Open
PaiduiXiaowangzi wants to merge 1 commit into
MoonshotAI:mainfrom
PaiduiXiaowangzi:fix/tasks-preview-refresh
Open

fix(tui): keep task preview output fresh#2973
PaiduiXiaowangzi wants to merge 1 commit into
MoonshotAI:mainfrom
PaiduiXiaowangzi:fix/tasks-preview-refresh

Conversation

@PaiduiXiaowangzi

Copy link
Copy Markdown

Related Issue

Resolve #2341

Problem

The selected task's Preview Output was loaded only when the selection changed. Output from a running process task could remain stale, manual refresh updated only task metadata, and output-loading failures looked identical to a task that produced no output.

What changed

  • Refresh the selected process-task preview while it is running and fetch final output when it reaches a terminal state.
  • Make manual refresh and stop flows retry the selected preview while preventing overlapping or stale requests from overwriting the current task.
  • Render preview-loading failures as a distinct retryable error state.
  • Add contract tests for live refresh, terminal output, retry recovery, error rendering, and late-response isolation.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot

changeset-bot Bot commented Aug 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a725bc4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@PaiduiXiaowangzi
PaiduiXiaowangzi force-pushed the fix/tasks-preview-refresh branch from e2ad645 to a725bc4 Compare August 16, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(tui): keep /tasks Preview Output fresh and surface load errors

1 participant