Uh oh!
There was an error while loading. Please reload this page.
fix(runtime): bound agent output projections - #1597
Merged
Merged
Conversation
This was referenced Jul 29, 2026
likun666661
marked this pull request as ready for review
July 29, 2026 12:25
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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 changed
agent_outputviews so callers do not receive AgentRun and RuntimeEvent streams together by defaultmax_events: 100to a bounded 20-event, 32 KiB runtime-event inspectionWhy
Issue #1593 reproduced Graph supervisor context overflow after four
agent_outputcalls returned roughly 479–572 KiB each. The tool only bounded event count, not serialized size, and duplicated two event projections into the root session.This is PR 1 of 4 in the Graph context-overflow repair stack.
Impact
Raw child execution history remains durable and inspectable through explicit views, while normal Graph supervision receives a bounded semantic projection.
Validation
npm --workspace @maka/runtime run typechecknpm --workspace @maka/runtime run buildgit diff --checkThe full SessionManager file also exposed an unrelated pre-existing timing-sensitive test failure; the affected agent-output subset passes independently.