mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
## Why Local stdio discovery needs to accommodate legacy servers that return an empty response to `server/discover`, take longer to initialize than the discovery watchdog allows, or require `initialize` as their first request. ## What changed Mark `mcp_connection_sharing` stable and enable it by default. Treat an empty discovery response as an unsupported method and let legacy initialization use the configured startup timeout. Give legacy restarts a fresh timeout and keep modern version retries within the original deadline. ## Testing Cover empty discovery responses, slow initialization on the original connection, and restarts after ignored or rejected initialization. Explicitly select legacy mode in tests that depend on legacy behavior. GitOrigin-RevId: 04d87ddfe02fac8491f879ce420bf294dc725128