Skip to content

Bound remote MCP handshake HTTP requests - #37168

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d4980a332e898309c885cbaa4fdd598924b440e1
Aug 5, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d4980a332e898309c885cbaa4fdd598924b440e1

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

Bound remote MCP handshake HTTP requests

Why

A streamable HTTP MCP handshake could time out while its executor-backed HTTP
request continued running, leaving the serial executor blocked for later
requests.

What changed

  • Track the remaining initialization deadline for streamable HTTP transports.
  • Apply it to initialize, notifications/initialized, and discovery HTTP
    requests, then clear it when the handshake finishes.

Testing

  • Added a regression test that stalls the remote MCP endpoint, waits for the
    handshake timeout, and verifies that a subsequent executor request completes.

## Why

A streamable HTTP MCP handshake could time out while its executor-backed HTTP
request continued running, leaving the serial executor blocked for later
requests.

## What changed

- Track the remaining initialization deadline for streamable HTTP transports.
- Apply it to `initialize`, `notifications/initialized`, and discovery HTTP
  requests, then clear it when the handshake finishes.

## Testing

- Added a regression test that stalls the remote MCP endpoint, waits for the
  handshake timeout, and verifies that a subsequent executor request completes.

GitOrigin-RevId: d4980a332e898309c885cbaa4fdd598924b440e1
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/d4980a332e898309c885cbaa4fdd598924b440e1 branch from a74ce51 to e244a9d Compare August 5, 2026 21:52
@copyberry
copyberry Bot merged commit e244a9d into main Aug 5, 2026
13 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/d4980a332e898309c885cbaa4fdd598924b440e1 branch August 5, 2026 21:53
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 5, 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