Repository navigation
Wire bounded output collection into the code mode runtime - #57850
Merged
copyberry[bot] merged 1 commit intoOct 28, 2026
Conversation
## Why Bounding collected output also requires limiting the raw event backlog between V8 and the cell actor. Previously, runtime events and cell output accumulated in an unbounded channel and vector. ## What changed - Select the event transport and `OutputCollector` from the cell's `output_truncation` mode. Server mode uses an ordered, bounded channel with backpressure; client mode retains untruncated output. - Transfer the collector with each observation and restore it on failed delivery, preserving retained media and omission metadata. - Include server-mode script errors in the observation's output budget. Build completion output only after completion wins against termination, so a rejected error cannot evict output returned by termination. - Keep the public service on client-side truncation. ## Testing Add regression coverage for channel backpressure, event ordering, receiver closure, failed observation delivery, termination during completion commit, and oversized errors across UTF-8 and omission boundaries. GitOrigin-RevId: 7604b60416e33c636ca41138be65dc0fd452774a
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/7604b60416e33c636ca41138be65dc0fd452774a
branch
from
October 28, 2026 22:33
d1d0aa6 to
92e802f
Compare
Contributor
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/7604b60416e33c636ca41138be65dc0fd452774a
branch
October 28, 2026 22:33
GGBondBlueWhale
temporarily deployed
to
issue-triage
October 28, 2026 22:34 — with
GitHub Actions
Inactive
GGBondBlueWhale
temporarily deployed
to
issue-triage
October 28, 2026 22:34 — with
GitHub Actions
Inactive
GGBondBlueWhale
temporarily deployed
to
issue-triage
October 28, 2026 22:34 — with
GitHub Actions
Inactive
GGBondBlueWhale
temporarily deployed
to
issue-triage
October 28, 2026 22:35 — with
GitHub Actions
Inactive
jmgiles5730-del
temporarily deployed
to
issue-triage
October 28, 2026 22:49 — with
GitHub Actions
Inactive
jmgiles5730-del
temporarily deployed
to
issue-triage
October 28, 2026 22:49 — with
GitHub Actions
Inactive
jmgiles5730-del
temporarily deployed
to
issue-triage
October 28, 2026 22:49 — with
GitHub Actions
Inactive
andorthehood
temporarily deployed
to
issue-triage
October 28, 2026 22:50 — with
GitHub Actions
Inactive
andorthehood
temporarily deployed
to
issue-triage
October 28, 2026 22:50 — with
GitHub Actions
Inactive
andorthehood
temporarily deployed
to
issue-triage
October 28, 2026 22:50 — with
GitHub Actions
Inactive
andorthehood
temporarily deployed
to
issue-triage
October 28, 2026 22:51 — with
GitHub Actions
Inactive
GGBondBlueWhale
temporarily deployed
to
issue-triage
October 28, 2026 22:51 — with
GitHub Actions
Inactive
GGBondBlueWhale
temporarily deployed
to
issue-triage
October 28, 2026 22:51 — with
GitHub Actions
Inactive
GGBondBlueWhale
temporarily deployed
to
issue-triage
October 28, 2026 22:51 — with
GitHub Actions
Inactive
GGBondBlueWhale
temporarily deployed
to
issue-triage
October 28, 2026 22:52 — with
GitHub Actions
Inactive
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 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.
Wire bounded output collection into the code mode runtime
Why
Bounding collected output also requires limiting the raw event backlog between
V8 and the cell actor. Previously, runtime events and cell output accumulated
in an unbounded channel and vector.
What changed
OutputCollectorfrom the cell'soutput_truncationmode. Server mode uses an ordered, bounded channel withbackpressure; client mode retains untruncated output.
delivery, preserving retained media and omission metadata.
completion output only after completion wins against termination, so a
rejected error cannot evict output returned by termination.
Testing
Add regression coverage for channel backpressure, event ordering, receiver
closure, failed observation delivery, termination during completion commit,
and oversized errors across UTF-8 and omission boundaries.