Skip to content

Serialize concurrent MCP stdin writes - #33180

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/30c2e51827ecf57b5eb23d9ad1e876734d6e784e
Jul 14, 2026
Merged

Serialize concurrent MCP stdin writes#33180
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/30c2e51827ecf57b5eb23d9ad1e876734d6e784e

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 14, 2026

Copy link
Copy Markdown

Serialize concurrent MCP stdin writes

What changed

  • Guard executor-backed MCP stdio sends with a single-permit semaphore so a
    second JSON-RPC message cannot start writing while the first write is pending.
  • Add a regression test that drives two concurrent sends and verifies the
    process receives each newline-delimited message in order without overlap.

## What changed

- Guard executor-backed MCP stdio sends with a single-permit semaphore so a
  second JSON-RPC message cannot start writing while the first write is pending.
- Add a regression test that drives two concurrent sends and verifies the
  process receives each newline-delimited message in order without overlap.

GitOrigin-RevId: 30c2e51827ecf57b5eb23d9ad1e876734d6e784e
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/30c2e51827ecf57b5eb23d9ad1e876734d6e784e branch from 7345222 to 44954d1 Compare July 14, 2026 22:18
@copyberry
copyberry Bot merged commit 44954d1 into main Jul 14, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/30c2e51827ecf57b5eb23d9ad1e876734d6e784e branch July 14, 2026 22:19
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 2026
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.

1 participant