Commit Graph
1 Commits
Author SHA1 Message Date
yetone 8bc46b407a gateway: tests that an overloaded Codex account fails over to the next, by every door (Coordinate_siwu on X)
Coordinate_siwu: two ChatGPT accounts of different emails, GPT answers
529, magpie asks again and fails instead of moving to the other account.

Could not reproduce. New tests hold two Codex accounts, acct-1 refusing
every ask and acct-2 serving, and the turn must reach acct-2: 529 (json,
empty, html, rate and usage words), 503 overloaded and plain, 500, 429
rate, 200 stream ending response.failed server_is_overloaded; by Codex's
POST and its WebSocket, /v1/chat/completions (stream and whole) and
/v1/messages; routing smart, order, rotate, drain; and a conversation
kept on the account that answered its first turn. All pass on main, so
no gateway change. Broken by hand (codexAccounts always relaying as it
came): 47 subtests red.

Run: go test -run 'TestCodexOverloaded|TestCodexKept|TestCodexSocketOverloaded'
./internal/gateway on mote, ok. Not tried: a real ChatGPT 529, the
reporter's own settings (Codex "only switch sign-in", the second account
switched off), WebKit/GUI (no GUI change).
2026-11-12 00:42:05 +08:00