Skip to content

Let unrelated tools run while MCP servers start - #35937

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/884d154bc403dfc1d347d265da3d6a887948e7b6
Jul 29, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Let unrelated tools run while MCP servers start

Why

Cached MCP definitions can make a tool callable before its server has finished
starting. Waiting for that server while holding the tool execution gate blocks
unrelated calls in the same response.

What changed

  • Expose the owning MCP server through tool runtime metadata, including tools
    with exposure overrides.
  • Refresh MCP state and wait for that specific server before entering the
    parallel execution gate.

Testing

Extend the cached MCP tool regression test to verify that an unrelated plan
update completes while MCP startup remains pending.

## Why

Cached MCP definitions can make a tool callable before its server has finished
starting. Waiting for that server while holding the tool execution gate blocks
unrelated calls in the same response.

## What changed

- Expose the owning MCP server through tool runtime metadata, including tools
  with exposure overrides.
- Refresh MCP state and wait for that specific server before entering the
  parallel execution gate.

## Testing

Extend the cached MCP tool regression test to verify that an unrelated plan
update completes while MCP startup remains pending.

GitOrigin-RevId: 884d154bc403dfc1d347d265da3d6a887948e7b6
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/884d154bc403dfc1d347d265da3d6a887948e7b6 branch from 10a1072 to fbf666f Compare July 29, 2026 11:15
@copyberry
copyberry Bot merged commit fbf666f into main Jul 29, 2026
12 of 24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/884d154bc403dfc1d347d265da3d6a887948e7b6 branch July 29, 2026 11:16
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 2026
@IanIT
IanIT temporarily deployed to issue-triage July 29, 2026 11:32 — with GitHub Actions Inactive
@IanIT
IanIT temporarily deployed to issue-triage July 29, 2026 11:32 — with GitHub Actions Inactive
@IanIT
IanIT temporarily deployed to issue-triage July 29, 2026 11:32 — with GitHub Actions Inactive
@Oka00
Oka00 temporarily deployed to issue-triage July 29, 2026 11:39 — with GitHub Actions Inactive
@Oka00
Oka00 temporarily deployed to issue-triage July 29, 2026 11:39 — with GitHub Actions Inactive
@Oka00
Oka00 temporarily deployed to issue-triage July 29, 2026 11:39 — with GitHub Actions Inactive
@Oka00
Oka00 temporarily deployed to issue-triage July 29, 2026 11:40 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
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.

4 participants