Files
codex-proxy-rs/backend/migrations/0004_ops_error_send_state.sql
T
ZyyandCodex 6e8e787b82 fix(openai): harden websocket failure recovery
Prevent hidden retries after ambiguous WebSocket sends, enforce connection-local continuation ownership, and persist raw upstream failure details for operations diagnostics.

Co-authored-by: Codex <noreply@openai.com>
2026-09-01 18:12:48 +08:00

12 lines
396 B
SQL

-- 为运维错误保留 payload 发送边界与上游错误原文。
alter table model_requests
add column raw_upstream_error text;
alter table ops_events
add column upstream_send_state text,
add column raw_upstream_error text,
add constraint ops_events_upstream_send_state_ck check (
upstream_send_state is null
or upstream_send_state in ('not_sent', 'sent', 'ambiguous')
);