mirror of
https://github.com/openai/codex.git
synced 2026-09-08 15:50:34 +00:00
## Why When the event receiver is closed, an MCP elicitation request cannot reach its consumer. Ignoring that delivery failure leaves the request and its lifecycle registration pending while waiting for a response that cannot arrive. ## What changed Return a contextual error when an MCP elicitation event cannot be delivered. This drops the pending-request guard immediately, removing the responder from the router and releasing its lifecycle registration. ## Testing Add a regression test that closes the event channel and verifies the request fails immediately, the router is empty, and the lifecycle registration is released. GitOrigin-RevId: 1067f35a5775d61c5bcd07b4b190d3907d8f219a