fix(vscode): speed up subagent transcript loading - #11104
Merged
Conversation
Paginate child histories and preserve reasoning updates that arrive while their initial transcript loads.
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge The changes are well-structured and the logic is sound. Key design decisions reviewed:
Files Reviewed (5 files)
Reviewed by claude-sonnet-4.6 · 1,112,151 tokens Review guidance: REVIEW.md from base branch |
imanolmzd-svg
approved these changes
Jun 12, 2026
t7tran
pushed a commit
to t7tran/kilocode
that referenced
this pull request
Aug 14, 2026
fix(vscode): speed up subagent transcript loading
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.
Subagent tabs waited for session metadata and the entire transcript before navigating, so long-running child sessions felt slow to open. The initial snapshot also discarded buffered SSE updates received during the fetch, which could leave a reasoning part empty when reasoning completed in that window.
Track child sessions before panel initialization, navigate as soon as the webview is ready, and load metadata concurrently. Subagent transcripts now use the same paginated loading path and row virtualizer as normal sessions, while buffered live updates are applied after the initial snapshot so completed reasoning remains visible.
Benchmark
Cold editor-tab opens of the same real 253-message Explore subagent, comparing the pre-fix commit with this branch using matched debug bundles and a warmed backend:
The previous path loaded all 253 messages immediately. The new path loaded the bounded latest page and exposed older history through normal pagination; both settled with one mounted transcript row at the measured viewport.