Files
codex/codex-rs
Ben Romano 1aeab9e3d5 Overlap remote MCP config reads with capability discovery (#65101)
## Why

MCP runtime refreshes waited for capability discovery and host MCP
configuration to finish before requesting HTTP MCP servers from the selected
remote environment. That serialized two reads that can be in flight together.

## What changed

Start the remote environment config read alongside host MCP configuration,
including executor capability discovery. Start the read's 10-second timeout
after host configuration is ready so a serial executor can queue the read
behind discovery without consuming its timeout. Merge the results with host
server precedence and requirements still enforced.

## Testing

Add V1 and V2 integration cases that hold both executor replies until both
requests arrive, then verify host precedence and requirements. Add a
paused-clock test that covers a queued read and confirms a stalled read
times out 10 seconds after discovery completes.

GitOrigin-RevId: d974f0f575559bfe6b756de11aa460399fdabf25
2026-12-01 22:57:35 +00:00
..
…
…
…
…