core-agent-ide/codex-rs/codex-api/src
Celia Chen 02f67bace8
fix: Emit response.completed immediately for Responses SSE (#9170)
we see windows test failures like this:
https://github.com/openai/codex/actions/runs/20930055601/job/60138344260.

The issue is that SSE connections sometimes remain open after the
completion event esp. for windows. We should emit the completion event
and return immediately. this is consistent with the protocol:

> The Model streams responses back in an SSE, which are collected until
"completed" message and the SSE terminates

from
https://github.com/openai/codex/blob/dev/cc/fix-windows-test/codex-rs/docs/protocol_v1.md#L37.

this helps us achieve parity with responses websocket logic here:
https://github.com/openai/codex/blob/dev/cc/fix-windows-test/codex-rs/codex-api/src/endpoint/responses_websocket.rs#L220-L227.
2026-01-14 10:05:00 -08:00
..
endpoint Websocket append support (#9128) 2026-01-13 06:07:13 +00:00
requests Websocket append support (#9128) 2026-01-13 06:07:13 +00:00
sse fix: Emit response.completed immediately for Responses SSE (#9170) 2026-01-14 10:05:00 -08:00
auth.rs chore: proper client extraction (#6996) 2025-11-25 18:06:12 +00:00
common.rs Websocket append support (#9128) 2026-01-13 06:07:13 +00:00
error.rs chore: proper client extraction (#6996) 2025-11-25 18:06:12 +00:00
lib.rs Websocket append support (#9128) 2026-01-13 06:07:13 +00:00
provider.rs Add feature for optional request compression (#8767) 2026-01-07 13:21:40 -08:00
rate_limits.rs fix: taking plan type from usage endpoint instead of thru auth token (#7610) 2025-12-04 23:34:13 -08:00
telemetry.rs chore: proper client extraction (#6996) 2025-11-25 18:06:12 +00:00