Repository navigation
fix(server): bound live tool payloads like the settled read - #89
Merged
Merged
Conversation
This was referenced Nov 15, 2026
Tarquinen
force-pushed
the
port-toolbounds
branch
from
November 15, 2026 23:29
603081b to
61ab9c9
Compare
Port of the tool part of iOS 72a78460: a tool's live input, output and metadata reached the transcript whole (a megabyte of shell output on the row while it ran), then shrank to the REST read's 20 000-character and 100-item bounds once it settled. The stream now applies the same bounds (`OpenCodeToolBounds`, shared with the REST decoder), so the live row matches its settled read and huge payloads don't sit in state. The offscreen Markdown skip from that commit was already here; dropping reasoning text is deferred (the payload still decodes it). Verified: ported OpenCodeEventDecodingTests.liveToolPayloadsAreBoundedLikeTheSettledRead fails on the old decoder (unbounded output) and passes now; vm.sh check :server passes; ios-sync.py check reports 0 errors.
Tarquinen
force-pushed
the
port-toolbounds
branch
from
November 16, 2026 00:12
61ab9c9 to
56b5fbe
Compare
This was referenced Nov 16, 2026
Merged
This branch was previously deployed
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.
A running tool's input, output and metadata came off the live stream whole (a megabyte of shell output could sit on the row), then shrank to the REST read's 20,000-character and 100-item limits once the tool finished. The live stream now applies the same limits, so a running tool's row matches what it shows once settled and huge payloads don't sit in memory.
iOS: 72a78460 (the tool part)
Emulator (session-lab, a shell tool streaming 5 MB of output, Java heap after GC):
devgrew 23.1 → 41.7 MB, this PR 23.0 → 26.5 MB. The screen is the same on both (the running tool row is collapsed).Verified: ported
liveToolPayloadsAreBoundedLikeTheSettledRead, which fails without the fix;scripts/check.sh :serverpasses.