fix(vscode): run editor actions when the sidebar shows History - #14491
Merged
marius-kilocode merged 2 commits intoSep 25, 2026
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (4 files)
Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
marius-kilocode
approved these changes
Sep 25, 2026
marius-kilocode
left a comment
Collaborator
There was a problem hiding this comment.
Thanks @hdcodedev for the fix. Verified in VS Code with the sidebar on History: Add to Context switches to the chat and adds the selection card, and Explain Code switches and sends the prompt. Nice work.
This was referenced Sep 25, 2026
This was referenced Sep 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
No issue found.
Context
Explain Code, Fix Code, Improve Code and Add to Context did nothing while the sidebar showed History. The action was lost without any message, and the user had to switch to the chat and run it again.
With this change, the sidebar switches to the chat and the action runs there, in the session that was open before History.
Implementation
These actions are handled by the chat's prompt box, which exists only while the chat is showing. When one of them arrives on another sidebar view, the sidebar now switches to the chat and sends the action again once the prompt box is ready. The sidebar already switches to the chat the same way when a session is opened or the chat search command runs.
Screenshots / Video
Before
before.mp4
After
after.mp4
How to Test
Manual/local verification
mainby following the steps below.bun test tests/unit/chat-input-route.test.tspasses, covering History, the chat view, and unrelated messages (agent).bun run typecheckinpackages/kilo-vscodepasses (agent).Reviewer test steps
Checklist