mirror of
https://github.com/openai/codex.git
synced 2026-09-10 20:26:47 +00:00
## Why Realtime voice calls can span zero or many backing turns, so they need the saved thread source to identify their origin consistently. ## What changed - Add `thread_source` to `x-codex-turn-metadata` when starting realtime WebSocket, existing-call, and WebRTC transports. - Encode the metadata as header-safe ASCII and omit absent, invalid, or larger-than-256-byte source values. ## Testing - Cover source propagation, escaping, and size limits across realtime transports, including child threads that share a parent session. GitOrigin-RevId: b5a9eef8dfdbb83387bd0e364a4922b15030f4d6