mirror of
https://github.com/openai/codex.git
synced 2026-10-29 08:07:53 +00:00
## Why Raw response items, realtime audio, and other notifications that the TUI does not consume during replay can carry large payloads. Retaining them in each thread's replay buffer wastes memory and can evict useful buffered events. ## What changed - Skip replay buffering for notification types that are handled before routing or ignored during replay, while still updating turn and approval state. - Borrow notifications when recording events for an active thread so routing does not require an extra clone. ## Testing Add coverage that repeatedly sends large MCP progress and realtime audio notifications and verifies that the replay buffer, pending approval, and active turn state remain intact. GitOrigin-RevId: 5b3414f1db7f3ae1feea4fe6c0275e4a7a1a4174