Skip to content

fix(vscode): complete slash commands with tab - #2468

Open
ousamabenyounes wants to merge 1 commit into
MoonshotAI:mainfrom
ousamabenyounes:fix/issue-2295
Open

fix(vscode): complete slash commands with tab#2468
ousamabenyounes wants to merge 1 commit into
MoonshotAI:mainfrom
ousamabenyounes:fix/issue-2295

Conversation

@ousamabenyounes

Copy link
Copy Markdown

Fixes #2295.

Summary

  • make Tab complete the selected slash command into the VS Code chat input instead of sending it immediately
  • keep the existing Enter and mouse-click send behavior unchanged
  • preserve text around the active token, normalize the argument separator, and place the caret ready for arguments
  • add regression coverage for key dispatch, suffix handling, and caret placement

Test verification (RED → GREEN)

  • RED: the new completion test initially failed because the insertion helper did not exist
  • GREEN: the targeted completion suite passes all 4 tests
  • full local suite: monorepo lint (0 errors; existing warnings only), typecheck, and production build passed
  • full monorepo tests with bounded concurrency: 1,035 files passed, 16,894 tests passed, 3 expected failures, 83 skipped, 2 todo
  • independent code review: PASS after fixing Enter/click compatibility and separator handling

AI assistance disclosure

This patch and PR text were AI-assisted using OpenAI Codex. The implementation was exercised with targeted regression tests and the complete local validation suite; the human contributor remains responsible for reviewing and understanding the submitted changes.

@changeset-bot

changeset-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 901787d

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

This PR includes changesets to release 1 package
Name Type
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

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.

不能改一下kimi code for vscode聊天框的tab行为吗

1 participant