Repository navigation
core: keep parent-visible subagent context current - #615
Merged
GraciousGazelles merged 14 commits intoAug 14, 2026
Merged
GraciousGazelles merged 14 commits into
GraciousGazelles merged 14 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a structured SubagentContext and SubagentContextBuilder to safely format, escape, and limit subagent context data, replacing the previous simple string formatting. It also updates the environment state rendering to support subagent updates and unavailability, backed by comprehensive unit tests. The review feedback focuses on performance optimizations, specifically recommending the elimination of unnecessary string allocations in bounded_xml_text by using a stack-allocated buffer with char::encode_utf8, and in SubagentContextBuilder::finish by building the final string directly instead of collecting rows into a temporary vector.
GraciousGazelles
enabled auto-merge
August 14, 2026 15:03
GraciousGazelles
disabled auto-merge
August 14, 2026 17:00
GraciousGazelles
deleted the
fix/history-successor-subagent-context-main-ad234-sharedlint
branch
August 14, 2026 20:55
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.
Why
Parent-visible environment context could retain stale subagent information after a child changed or disappeared. That made resumed or compacted turns describe an outdated set of active subagents.
What changed
Validation
Exact candidate:
4a0cfdea8ff85bb4a2f415c501fc65fb12ba2491The successful PR-triggered heavy run
31828100781is intentionally excluded from exact-head acceptance evidence because its summary artifact records the synthetic PR merge ref instead of the candidate head. A separate follow-up covers the workflow-summary head-binding issue.