ly's seven Codex Plus accounts on gpt-6-astra all showed "失败 · N 分钟后恢复"
(rest.why other, by backoff) for up to 10 minutes. A failure that says
nothing of why (a 5xx, a stream's response.failed server_error) on every
account is asked again a dozen times by the request's patience. Each retry
counted against the account, so one request took each account to 13
failures in a row and rested it the 10-minute cap (longestRetry).
restAfterMarked's backoff now keeps its count while the account, or that
model on it, still rests for a failOther (backingOff), as rateRest already
does for rate limits. It climbs once a rest has ended and it fails again.
Not changed: each account still rests for that minute, whole. The same 5xx
on every account of one model is the model's, not each account's; filed
as #4285.
Run (mote):
- go test ./internal/gateway -count=1 -timeout 45m: ok (503s), on base
2da7293d4; after the rebase onto fd5c631cb (image MCP changes in the
package), TestSmartRouting, TestOneRequestDoesNotClimbTheBackoff and
TestPlain403*: ok
- new TestOneRequestDoesNotClimbTheBackoff (500 and response.failed): red
on the old routing.go ("rests 10m0s by backoff, 13 failures in a row"),
green with the change
- TestSmartRouting's ladder check updated: a second failure while resting
stays at 1m; after the rest ends it climbs to 2m
- gofmt -l clean; go vet ./internal/gateway for darwin, linux (-tags
nogui) and windows: ok
Not tried: ly's real error body; we asked for the failed row's hover text.