Skip to content

fix(tui): clear debug timing status on undo - #1187

Merged
liruifengv merged 1 commit into
mainfrom
fix/undo-debug-timing
Jun 29, 2026
Merged

fix(tui): clear debug timing status on undo#1187
liruifengv merged 1 commit into
mainfrom
fix/undo-debug-timing

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Related Issue

No related issue.

Problem

With KIMI_CODE_DEBUG=1, each completed step prints a [Debug] timing line to the transcript. That line was added directly as a bare status component, so it was never tracked as part of a turn. After /undo, the user and assistant messages were removed, but the debug timing lines stayed behind.

What changed

Append the debug timing line as a turn-scoped transcript status entry (carrying the current turnId) instead of a bare status component. This places it in the same undo context as other per-turn status output (background tasks, approval notices), so /undo now removes it together with the rest of the turn. The rendered output is unchanged.

Added a message-flow test that verifies the debug timing line is removed on undo.

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 Jun 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 66bcedc

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

@pkg-pr-new

pkg-pr-new Bot commented Jun 29, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@66bcedc
npx https://pkg.pr.new/@moonshot-ai/kimi-code@66bcedc

commit: 66bcedc

@liruifengv
liruifengv merged commit 97f9263 into main Jun 29, 2026
10 checks passed
@liruifengv
liruifengv deleted the fix/undo-debug-timing branch June 29, 2026 05:31
@github-actions github-actions Bot mentioned this pull request Jun 29, 2026
Moixia pushed a commit to Moixia/idea that referenced this pull request Jun 29, 2026
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.

1 participant