Keep unified exec output collection bounded - #32150
Merged
copyberry[bot] merged 1 commit intoJul 10, 2026
Merged
Conversation
## Why Unified exec can drain process output multiple times while waiting for a command. Collecting those drains into an uncapped buffer allows large commands to exceed the output collection limit. ## What changed - Accumulate drained output through the capped head/tail buffer so collection remains bounded while preserving the beginning and end of the stream. - Include a `... N bytes omitted ...` marker when the collection cap drops output. - Calculate the original token estimate from all observed bytes and preserve omission metadata through truncation and sandbox-denial responses. ## Testing - Cover repeated drains, previously omitted output, omission markers, and large-output summaries. GitOrigin-RevId: c6e2efeb875ed8f35914365eab7431f25fd3484c
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/c6e2efeb875ed8f35914365eab7431f25fd3484c
branch
from
July 10, 2026 12:23
8339407 to
6138909
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/c6e2efeb875ed8f35914365eab7431f25fd3484c
branch
July 10, 2026 12:24
Rafik-Belkadi-Reccap
temporarily deployed
to
issue-triage
July 10, 2026 12:46 — with
GitHub Actions
Inactive
Rafik-Belkadi-Reccap
temporarily deployed
to
issue-triage
July 10, 2026 12:46 — with
GitHub Actions
Inactive
Rafik-Belkadi-Reccap
temporarily deployed
to
issue-triage
July 10, 2026 12:46 — with
GitHub Actions
Inactive
alonjacobitoluna
temporarily deployed
to
issue-triage
July 10, 2026 12:50 — with
GitHub Actions
Inactive
alonjacobitoluna
temporarily deployed
to
issue-triage
July 10, 2026 12:50 — with
GitHub Actions
Inactive
alonjacobitoluna
temporarily deployed
to
issue-triage
July 10, 2026 12:50 — with
GitHub Actions
Inactive
HackingWealth
temporarily deployed
to
issue-triage
July 10, 2026 13:31 — with
GitHub Actions
Inactive
HackingWealth
temporarily deployed
to
issue-triage
July 10, 2026 13:31 — with
GitHub Actions
Inactive
HackingWealth
temporarily deployed
to
issue-triage
July 10, 2026 13:31 — with
GitHub Actions
Inactive
HackingWealth
temporarily deployed
to
issue-triage
July 10, 2026 13:32 — with
GitHub Actions
Inactive
r55w8pyy4h-design
temporarily deployed
to
issue-triage
July 10, 2026 13:37 — with
GitHub Actions
Inactive
r55w8pyy4h-design
temporarily deployed
to
issue-triage
July 10, 2026 13:37 — with
GitHub Actions
Inactive
r55w8pyy4h-design
temporarily deployed
to
issue-triage
July 10, 2026 13:37 — with
GitHub Actions
Inactive
devansh-jain-18
temporarily deployed
to
issue-triage
July 10, 2026 13:38 — with
GitHub Actions
Inactive
devansh-jain-18
temporarily deployed
to
issue-triage
July 10, 2026 13:38 — with
GitHub Actions
Inactive
devansh-jain-18
temporarily deployed
to
issue-triage
July 10, 2026 13:38 — with
GitHub Actions
Inactive
devansh-jain-18
temporarily deployed
to
issue-triage
July 10, 2026 13:39 — with
GitHub Actions
Inactive
ignatremizov
temporarily deployed
to
issue-triage
July 10, 2026 14:03 — with
GitHub Actions
Inactive
ignatremizov
temporarily deployed
to
issue-triage
July 10, 2026 14:03 — with
GitHub Actions
Inactive
ignatremizov
temporarily deployed
to
issue-triage
July 10, 2026 14:03 — with
GitHub Actions
Inactive
ignatremizov
temporarily deployed
to
issue-triage
July 10, 2026 14:03 — with
GitHub Actions
Inactive
ignatremizov
temporarily deployed
to
issue-triage
July 10, 2026 14:03 — with
GitHub Actions
Inactive
ignatremizov
temporarily deployed
to
issue-triage
July 10, 2026 14:03 — with
GitHub Actions
Inactive
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Keep unified exec output collection bounded
Why
Unified exec can drain process output multiple times while waiting for a command. Collecting those drains into an uncapped buffer allows large commands to exceed the output collection limit.
What changed
... N bytes omitted ...marker when the collection cap drops output.Testing