Share byte buffers across exec-server output chunks (#49972)
## 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
J
jif committed
a933dd77dbe101d7bd746ea3c7d1f8174eca4a05
Parent: d6c3b44
Committed by copyberry <copyberry@app.openai.com>
on 10/1/2026, 12:41:39 PM