kimi-code icon indicating copy to clipboard operation
kimi-code copied to clipboard

fix(tui): enable terminal progress in VS Code

Open shizhigu opened this issue 4 months ago • 3 comments

Related Issue

Resolve #1884

Problem

Kimi Code sends OSC 9;4 progress updates, but its capability check omitted VS Code. VS Code terminal tabs therefore never received working and idle updates.

What changed

  • Recognize TERM_PROGRAM=vscode in the existing progress capability check. The desktop notification allowlist is unchanged.
  • Add a focused test and document the ${progress} tab setting in both interaction guides.

VS Code supports OSC 9;4 in version 1.97 and later. The tab title or description must include ${progress} for the indicator to appear. See the release notes and tab text documentation.

Validation

  • Focused terminal tests: 29 passed. Full CLI suite: 2,381 passed, 2 skipped.
  • Production path and bundled CLI smokes passed.
  • Typecheck, oxlint, docs build, and git diff --check passed.

Manual VS Code UI verification was not run from this shell.

Checklist

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

shizhigu avatar Jul 22 '26 16:07 shizhigu

🦋 Changeset detected

Latest commit: 1cb65f0c53019bac24279acaaac9562aaa9f30d5

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

changeset-bot[bot] avatar Jul 22 '26 16:07 changeset-bot[bot]

@codex review

@liruifengv Ready for review when you have a moment. This is a focused terminal capability fix with tests and documentation.

shizhigu avatar Jul 23 '26 14:07 shizhigu

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 1cb65f0c53

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".