Skip to content

Replace closed MCP connections during reconciliation - #34957

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/366a85c9959dbe1763923d7e33a4ecf52d9c3c6a
Jul 23, 2026
Merged

Replace closed MCP connections during reconciliation#34957
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/366a85c9959dbe1763923d7e33a4ecf52d9c3c6a

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 23, 2026

Copy link
Copy Markdown

Replace closed MCP connections during reconciliation

Why

MCP connection reconciliation can otherwise reuse a client after its service or
underlying transport has stopped.

What changed

  • Add RmcpClient::is_closed to report closed client, service, and transport
    states.
  • Exclude closed clients when selecting a reusable MCP connection so
    reconciliation starts a replacement.

Testing

  • Add a reconciliation test that disconnects an in-process MCP transport and
    verifies that its connection is replaced.

## Why

MCP connection reconciliation can otherwise reuse a client after its service or
underlying transport has stopped.

## What changed

- Add `RmcpClient::is_closed` to report closed client, service, and transport
  states.
- Exclude closed clients when selecting a reusable MCP connection so
  reconciliation starts a replacement.

## Testing

- Add a reconciliation test that disconnects an in-process MCP transport and
  verifies that its connection is replaced.

GitOrigin-RevId: 366a85c9959dbe1763923d7e33a4ecf52d9c3c6a
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/366a85c9959dbe1763923d7e33a4ecf52d9c3c6a branch from db5e4b6 to 34b935e Compare July 23, 2026 15:29
@copyberry
copyberry Bot merged commit 34b935e into main Jul 23, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/366a85c9959dbe1763923d7e33a4ecf52d9c3c6a branch July 23, 2026 15:30
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 23, 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