fix(vscode): stop flashing interruption warning on queued follow-up handoff - #12639
Merged
Conversation
…andoff A prompt sent while a session is running queues behind the active turn, which breaks out of its loop after the current LLM step drains. That handoff was recorded with close reason "interrupted", so the webview rendered the yellow "Turn interrupted." card during the brief idle window before the queued turn started. The handoff now closes with a dedicated "superseded" reason instead. Clients extend their close-reason unions and the webview suppresses the terminal warning card for superseded turns; memory digests still treat the cut-short turn as interrupted, and real user interruptions are unchanged.
marius-kilocode
enabled auto-merge (squash)
July 29, 2026 10:32
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (11 files)
Reviewed by claude-sonnet-5 · Input: 36 · Output: 6.1K · Cached: 987.9K Review guidance: REVIEW.md from base branch |
chrarnoldus
approved these changes
Jul 29, 2026
marius-kilocode
disabled auto-merge
July 29, 2026 10:39
marius-kilocode
enabled auto-merge
July 29, 2026 10:41
This was referenced Jul 29, 2026
unixcrh
pushed a commit
to unixcrh/kilocode
that referenced
this pull request
Aug 1, 2026
t7tran
pushed a commit
to t7tran/kilocode
that referenced
this pull request
Aug 14, 2026
t7tran
pushed a commit
to t7tran/kilocode
that referenced
this pull request
Aug 14, 2026
…rning-flicker fix(vscode): stop flashing interruption warning on queued follow-up handoff
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.
Sending a follow-up message while a session is still running queues the prompt behind the active turn. The active turn then breaks out of its loop after the current LLM step drains so the queued prompt can take over. That deliberate handoff was recorded with the turn close reason "interrupted", and the webview renders a yellow "Turn interrupted." warning card whenever a session sits idle with that close reason. Between the old turn closing and the queued turn starting there is a brief idle window, so the card flashed on screen and vanished again, suggesting a premature stop that never happened.
The queue handoff now publishes a dedicated "superseded" close reason instead of "interrupted":
Covered by a new backend integration test that queues a follow-up mid-turn against a held-open mock LLM stream and asserts both close reasons, plus a webview unit test for the superseded terminal state.