Files
CLIProxyAPI/internal/runtime/executor/codex_websockets_session.go
Luis Pater 9717e325ba fix(responses): reject late websocket interrupts after terminal events
- Track the running response identity in the Codex websocket session and reject interrupts that do not target it, so an interrupt after response.completed is never forwarded upstream while turn teardown is pending.
- Gate the handler's local interrupt path by explicit turn ownership and close it before terminal payloads are written downstream, preventing fabricated response.incomplete events and silently dropped claimed frames.
- Add deterministic regression tests covering late and unknown interrupts across completion, failure, queued rejection, upstream loss, and HTTP fallback turns.

Closes: #7065
2026-10-28 18:33:51 +08:00

36 KiB