Skip to content

Bound exec-server stdio JSON-RPC messages - #32123

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/73eaf883324a7777960725037cc5b9c34720084f
Jul 10, 2026
Merged

Bound exec-server stdio JSON-RPC messages#32123
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/73eaf883324a7777960725037cc5b9c34720084f

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 10, 2026

Copy link
Copy Markdown

Bound exec-server stdio JSON-RPC messages

Why

Newline-delimited stdio input could buffer an unterminated JSON-RPC message without a per-message limit. Apply the same 64 MiB ceiling used by the other exec-server transports.

What changed

  • Read stdio messages with bounded lookahead and disconnect when a message exceeds the limit.
  • Preserve LF and CRLF framing, including messages whose payload is exactly at the limit.

Testing

Added tests for accepting a limit-sized CRLF message and rejecting an unterminated overlong message.

## Why

Newline-delimited stdio input could buffer an unterminated JSON-RPC message without a per-message limit. Apply the same 64 MiB ceiling used by the other exec-server transports.

## What changed

- Read stdio messages with bounded lookahead and disconnect when a message exceeds the limit.
- Preserve LF and CRLF framing, including messages whose payload is exactly at the limit.

## Testing

Added tests for accepting a limit-sized CRLF message and rejecting an unterminated overlong message.

GitOrigin-RevId: 73eaf883324a7777960725037cc5b9c34720084f
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/73eaf883324a7777960725037cc5b9c34720084f branch from a9769e7 to c4c21b6 Compare July 10, 2026 10:21
@copyberry
copyberry Bot merged commit c4c21b6 into main Jul 10, 2026
31 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/73eaf883324a7777960725037cc5b9c34720084f branch July 10, 2026 10:22
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 10, 2026
@Decme
Decme temporarily deployed to issue-triage July 10, 2026 10:26 — with GitHub Actions Inactive
@Decme
Decme temporarily deployed to issue-triage July 10, 2026 10:26 — with GitHub Actions Inactive
@Decme
Decme temporarily deployed to issue-triage July 10, 2026 10:26 — with GitHub Actions Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants