mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why App servers can reuse the same request IDs. Tracking dynamic tool calls by request ID alone lets one server's cleanup affect another server's call. Background title and recap events also need to reach their originating server when the TUI is displaying a different session. ## What changed - Track dynamic tool calls by backend and request ID, and match completions to the specific call. Send replies through the original reply handle in the background and give pending writes time to finish on shutdown. - Route background task registrations and title and recap events by backend. Check ownership before registering temporary threads or forwarding their notifications, and use the original connection for temporary-thread cleanup. ## Testing Regression coverage checks that closing a side thread preserves another backend's tool call with the same request ID, that a disconnected backend cannot register a task thread, and that a title helper cannot replace a temporary thread owned by another backend. GitOrigin-RevId: 0878efba94f317c814ee131403f0c6e793dfc2c0