Skip to content

fix(vscode): guard subagent promotion edge cases - #13425

Merged
marius-kilocode merged 1 commit into
mainfrom
fix-background-subagent-promotion-edge-cases
Aug 25, 2026
Merged

fix(vscode): guard subagent promotion edge cases#13425
marius-kilocode merged 1 commit into
mainfrom
fix-background-subagent-promotion-edge-cases

Conversation

@marius-kilocode

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Foreground subagent promotion could show a stale action after a child session was resumed, and the child-specific promotion endpoint did not enforce the background-subagent capability flag.

Why This Change Was Made

  • Show the promotion action only on the latest task part for each child session.
  • Enforce experimentalBackgroundSubagents in the promotion handler.
  • Propagate the server capability to the VS Code webview and fail closed when capability discovery is unavailable.

User Impact

Users no longer see a dead promotion action on stale task cards. Disabling background subagents prevents promotion in both the backend and the webview.

Evidence

  • Extension typecheck, lint, formatting, compile, Knip, and focused regression tests passed.
  • CLI typecheck and background route/task tests passed.
  • OpenCode annotation and Kilo marker checks passed.
  • Regression coverage includes resumed-child ordering, disabled capability visibility, and disabled promotion routing.

@marius-kilocode
marius-kilocode merged commit 2eb5bf3 into main Aug 25, 2026
33 checks passed
@marius-kilocode
marius-kilocode deleted the fix-background-subagent-promotion-edge-cases branch August 25, 2026 14:38
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.

2 participants