fix(vscode): make subagent task headers collapsible - #13602
Merged
Conversation
This comment has been minimized.
This comment has been minimized.
marius-kilocode
enabled auto-merge
August 31, 2026 10:24
WebReflection
approved these changes
Aug 31, 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.
What Problem This Solves
Opened subagents and async subagents hide the task-header collapse control because their transcripts are read-only. The expanded timeline takes space from the transcript, and an existing view does not receive changes to the main agent's saved timeline preference.
Why This Change Was Made
Collapsing the header changes presentation, not session content. Keep rename, compaction, and revert actions read-only while allowing the timeline toggle. Reuse the existing
showTaskTimelinesetting and configuration listener so the main agent, subagent inspector, and editor viewers stay in sync without a new preference.User Impact
Evidence
Matched screenshots from isolated VS Code with synthetic subagent transcripts. Before: the expanded header has no collapse control. After: the new control hides the timeline and applies the same state to the main agent. No live model requests were used.
Validated extension compilation, lint, typecheck, Knip, merge-marker guard, and formatting. All 51 focused regression tests and all 4,498 extension unit tests passed. Isolated UI checks covered regular and async subagent header toggles, synchronization with the parent, keyboard activation, and persistence after reload. Independent local review found no actionable issues.
Manual test: collapse the main agent header, open a regular or async subagent, and confirm it starts collapsed. Toggle the subagent header and confirm the main agent follows. Reload VS Code and confirm the saved state remains.