Repository navigation
Share byte buffers across exec-server output chunks - #49972
Merged
copyberry[bot] merged 1 commit intoOct 1, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Retaining process output, publishing events, and serving reads cloned the underlying byte buffers. Sharing those buffers avoids copying output bytes when chunks are cloned. ## What changed Store `ByteChunk` bytes in `Arc<Vec<u8>>` and retain `ProcessOutputChunk` values directly. Add borrowed byte access for the MCP process transport while preserving base64 serialization and owned byte extraction through `into_inner()`. ## Testing Add a unit test covering base64 serialization, deserialization, and independent owned bytes extracted from shared chunks. GitOrigin-RevId: 6bba114af48424aa844487aa75163cfc604e0575
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/6bba114af48424aa844487aa75163cfc604e0575
branch
from
October 1, 2026 12:41
4541fde to
a933dd7
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/6bba114af48424aa844487aa75163cfc604e0575
branch
October 1, 2026 12:41
taotao365s
temporarily deployed
to
issue-triage
October 1, 2026 12:42 — with
GitHub Actions
Inactive
taotao365s
temporarily deployed
to
issue-triage
October 1, 2026 12:42 — with
GitHub Actions
Inactive
taotao365s
temporarily deployed
to
issue-triage
October 1, 2026 12:42 — with
GitHub Actions
Inactive
renzbagaporo
temporarily deployed
to
issue-triage
October 1, 2026 12:51 — with
GitHub Actions
Inactive
renzbagaporo
temporarily deployed
to
issue-triage
October 1, 2026 12:51 — with
GitHub Actions
Inactive
renzbagaporo
temporarily deployed
to
issue-triage
October 1, 2026 12:51 — with
GitHub Actions
Inactive
renzbagaporo
temporarily deployed
to
issue-triage
October 1, 2026 12:52 — with
GitHub Actions
Inactive
mmffabiano
temporarily deployed
to
issue-triage
October 1, 2026 13:00 — with
GitHub Actions
Inactive
mmffabiano
temporarily deployed
to
issue-triage
October 1, 2026 13:00 — with
GitHub Actions
Inactive
mmffabiano
temporarily deployed
to
issue-triage
October 1, 2026 13:00 — with
GitHub Actions
Inactive
WGSTecnologia
temporarily deployed
to
issue-triage
October 1, 2026 13:09 — with
GitHub Actions
Inactive
WGSTecnologia
temporarily deployed
to
issue-triage
October 1, 2026 13:09 — with
GitHub Actions
Inactive
WGSTecnologia
temporarily deployed
to
issue-triage
October 1, 2026 13:09 — with
GitHub Actions
Inactive
benetipietro-ai
temporarily deployed
to
issue-triage
October 1, 2026 13:32 — with
GitHub Actions
Inactive
benetipietro-ai
temporarily deployed
to
issue-triage
October 1, 2026 13:32 — with
GitHub Actions
Inactive
benetipietro-ai
temporarily deployed
to
issue-triage
October 1, 2026 13:32 — with
GitHub Actions
Inactive
tedla-brandsema
temporarily deployed
to
issue-triage
October 1, 2026 13:43 — with
GitHub Actions
Inactive
tedla-brandsema
temporarily deployed
to
issue-triage
October 1, 2026 13:43 — with
GitHub Actions
Inactive
tedla-brandsema
temporarily deployed
to
issue-triage
October 1, 2026 13:43 — with
GitHub Actions
Inactive
yilufa18866
temporarily deployed
to
issue-triage
October 1, 2026 13:44 — with
GitHub Actions
Inactive
yilufa18866
temporarily deployed
to
issue-triage
October 1, 2026 13:44 — with
GitHub Actions
Inactive
yilufa18866
temporarily deployed
to
issue-triage
October 1, 2026 13:44 — with
GitHub Actions
Inactive
yilufa18866
temporarily deployed
to
issue-triage
October 1, 2026 13:45 — with
GitHub Actions
Inactive
nchandravel-atlas
temporarily deployed
to
issue-triage
October 1, 2026 13:49 — with
GitHub Actions
Inactive
nchandravel-atlas
temporarily deployed
to
issue-triage
October 1, 2026 13:49 — with
GitHub Actions
Inactive
nchandravel-atlas
temporarily deployed
to
issue-triage
October 1, 2026 13:49 — with
GitHub Actions
Inactive
nchandravel-atlas
temporarily deployed
to
issue-triage
October 1, 2026 13:51 — 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.
Share byte buffers across exec-server output chunks
Why
Retaining process output, publishing events, and serving reads cloned the underlying byte buffers. Sharing those buffers avoids copying output bytes when chunks are cloned.
What changed
Store
ByteChunkbytes inArc<Vec<u8>>and retainProcessOutputChunkvalues directly. Add borrowed byte access for the MCP process transport while preserving base64 serialization and owned byte extraction throughinto_inner().Testing
Add a unit test covering base64 serialization, deserialization, and independent owned bytes extracted from shared chunks.