Skip to content

Keep MCP tool calls bound to their thread - #36355

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5735f7b29a579f545351385ab01a575e35ead01e
Jul 31, 2026
Merged

Keep MCP tool calls bound to their thread#36355
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5735f7b29a579f545351385ab01a575e35ead01e

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 31, 2026

Copy link
Copy Markdown

Keep MCP tool calls bound to their thread

Why

Threads can configure the same MCP server name with different runtimes. Tool calls
must use the runtime associated with the thread that issued the call.

What changed

  • Route MCP readiness checks and call preparation through the invoking session.
  • Add regression coverage that alternates calls between two threads and verifies
    that each thread continues using its own MCP server process and configuration.

## Why

Threads can configure the same MCP server name with different runtimes. Tool calls
must use the runtime associated with the thread that issued the call.

## What changed

- Route MCP readiness checks and call preparation through the invoking session.
- Add regression coverage that alternates calls between two threads and verifies
  that each thread continues using its own MCP server process and configuration.

GitOrigin-RevId: 5735f7b29a579f545351385ab01a575e35ead01e
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/5735f7b29a579f545351385ab01a575e35ead01e branch from 06ca063 to c4f2746 Compare July 31, 2026 16:14
@copyberry
copyberry Bot merged commit c4f2746 into main Jul 31, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/5735f7b29a579f545351385ab01a575e35ead01e branch July 31, 2026 16:15
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 31, 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