mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
## What changed - `app-server` now sends initialize notifications to the specific websocket connection before that connection is marked outbound-ready. - `message_processor` now exposes the forwarding hook needed to target that initialize delivery path. ## Why this fixes the flake - This was a real websocket ordering bug. - The old code allowed “connection is ready for outbound broadcasts” to become true before the initialize notification had been routed to the intended client. - On CI this showed up as a race where tests would occasionally miss or misorder initialize delivery depending on scheduler timing. - Sending initialize to the exact connection first, then exposing it to the general outbound path, removes that race instead of hiding it with timing slack. ## Scope - Production logic change.