GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(combos): a spent pool account must not cool the whole target (carry #6234) by lidge-jun · Pull Request #6255 · lidge-jun/opencodex Conversation
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: lidge-jun/opencodex/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (16)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
✅ Deterministic PR hygiene checks passed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
리뷰 · 우선순위 70 / 80이 PR은 #6234를 현장 이야기는 #6234와 같다. 2026-09-28에 Anthropic 계정 하나가 베이스는 라인 - 라인 - 라인 - 메인테이너의 판단이 필요한 지점 #6234와 #6255 중 무엇을 남길지. 이 PR이 carry + 강화분이면 #6234는 닫는 쪽이 맞다. Codex는 마지막 429 health 기록이 Anthropic만큼 명시적으로 추가되지 않았다. Codex 콤보도 같은 이득을 줘야 하면 기록 지점을 맞출지, 지금은 Anthropic 사고만 고치고 Codex는 health가 있을 때만 이득을 보게 둘지. CI 빨간 소스 스캔을 이 PR에서 고칠지. 너의 추천 방향은 맞다. 풀이 이미 계정 쿨다운을 갖고 있으니 콤보가 타깃을 한 번 더 식히지 않는 쪽이 맞고, live health를 요구한 것도 #6234보다 안전하다. 머지 전에 always-on-429 소스 스캔 실패부터 고치고, #6234는 이 PR에 흡수되면 닫으세요. draft 해제·체크리스트·보안 리뷰는 그다음이다. 이 댓글은 grok-bot이 작성했습니다 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 2f7737756b
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| config, | ||
| pick.target.provider, | ||
| pick.target.model, | ||
| poolAccountProviderLabel(childLog.provider, pick.target.provider), |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Resolve the main Codex pool account from its account label
When a canonical Codex pool dispatch uses the main-pool account and its terminal 429 records a cooldown, formatCodexProviderForLog deliberately leaves childLog.provider equal to the configured provider while childLog.accountLogLabel is main (src/codex/routing.ts:1617-1625, src/server/responses/request-prepare.ts:1307-1310). Passing only the provider label here therefore yields no failedAccount, and the combo cools the entire target even when a stored backup account is healthy. Pass the account label as well and resolve MAIN_CODEX_ACCOUNT_ID when it has matching live quota health.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (providerName === "anthropic") { | ||
| const matches = getAccountSet("anthropic")?.accounts.filter(account => | ||
| formatAnthropicProviderForLog("anthropic", account.id) === label) ?? []; | ||
| return matches.length === 1 && getAnthropicAccountHealthSnapshot(matches[0]!.id) ? label : undefined; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Record terminal sidecar 429s before requiring account health
For an Anthropic combo using a web-search or image sidecar, sidecar-execution.ts:262-306 returns a terminal 429 without calling recordAnthropicAccount429 when the shared hop reservation is denied or the three-failover cap has already been reached. The current account consequently has no health snapshot here, so a five-account pool that exhausts the fourth account cools the whole combo target and blocks the untouched fifth account. Apply the same terminal-429 recorder added to the dispatch and continuation loops before these sidecar returns.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…pool When every Anthropic OAuth account is cooled, the pool refuses locally with a 429 whose Retry-After is `getAnthropicPoolRetryAfterSeconds`: the earliest per-account cooldown, restated. lidge-jun#6255 deliberately keeps cooling the combo TARGET on that refusal, since no account was identified, so the server-delay path records it as an authoritative upstream delay of up to the 24h ceiling. That number is local state, not an upstream statement, and local state changes: an account is added, resumed, re-authenticated or has its cooldown cleared. Only a combo edit or delete clears a target cooldown (`clearComboTargetCooldowns` is called solely from management/combo-routes.ts), so after a weekly window exhausts every account, a freshly added account sits ignored by every combo that routes through Anthropic until the target expires, up to a day, while the pool itself would already serve it. `isAnthropicPoolLocalRefusal()` classifies that one response by provenance, not by current pool state alone: the target must be the OAuth `anthropic` provider, no account may have been identified for the failure, the status must be 429, and the pool must be holding the wait (no eligible account, at least one known cooldown expiry). Only then is the pool's restated Retry-After withheld from the target cooldown. The target still cools (the anti-hammer guard lidge-jun#6255 intended), but for the local fallback, which `coolComboTarget` already caps at ten minutes. Re-offering the target while the pool still holds the wait costs a local refusal with zero upstream sends. A genuine upstream Retry-After keeps parking the target in full: an upstream 429 on a pool account always cools and names that account, an API-key provider never qualifies, and a single account is never cooled by rotation. The tested wait-vs-failover contract in combo-authoritative-reset.test.ts passes unchanged. The classifier lives in core-combo.ts and only reads the pool through existing exports, so no auth surface is modified. Verification: `bun run typecheck` clean. always-on-429-failover: 11/11 with two new cases covering the pool-held refusal, an identified account, an API-key provider, a non-429 status, recovery on a newly saved account, and the target cooldown expiring at ten minutes rather than the pool's four-day Retry-After. Both fail with the classifier forced false. tests/routing plus the three combo cooldown suites: 1249 pass / 21 fail against 1247 / 21 on dev, the same 21 pre-existing failures. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…pool When every Anthropic OAuth account is cooled, the pool refuses locally with a 429 whose Retry-After is `getAnthropicPoolRetryAfterSeconds`: the earliest per-account cooldown, restated. lidge-jun#6255 deliberately keeps cooling the combo TARGET on that refusal, since no account was identified, so the server-delay path records it as an authoritative upstream delay of up to the 24h ceiling. That number is local state, not an upstream statement, and local state changes: an account is added, resumed, re-authenticated or has its cooldown cleared. Only a combo edit or delete clears a target cooldown (`clearComboTargetCooldowns` is called solely from management/combo-routes.ts), so after a weekly window exhausts every account, a freshly added account sits ignored by every combo that routes through Anthropic until the target expires, up to a day, while the pool itself would already serve it. `isAnthropicPoolLocalRefusal()` classifies that one response by provenance, not by current pool state alone: the target must be the OAuth `anthropic` provider, no account may have been identified for the failure, the status must be 429, and the pool must be holding the wait (no eligible account, at least one known cooldown expiry). Only then is the pool's restated Retry-After withheld from the target cooldown. The target still cools (the anti-hammer guard lidge-jun#6255 intended), but for the local fallback, which `coolComboTarget` already caps at ten minutes. Re-offering the target while the pool still holds the wait costs a local refusal with zero upstream sends. A genuine upstream Retry-After keeps parking the target in full: an upstream 429 on a pool account always cools and names that account, an API-key provider never qualifies, and a single account is never cooled by rotation. The tested wait-vs-failover contract in combo-authoritative-reset.test.ts passes unchanged. The classifier lives in core-combo.ts and only reads the pool through existing exports, so no auth surface is modified. Verification: `bun run typecheck` clean. always-on-429-failover: 12/12 with three new cases. One drives the real `executeComboResponses` failure path with a child that answers the pool's 429 and a four-day Retry-After: the target re-opens at ten minutes when the pool holds the wait, and stays parked in the control run where the same 429 arrives with an account still eligible; reverting only the call site to always forward Retry-After fails it. The other two cover the pool-held refusal, an identified account, an API-key provider, a non-429 status, recovery on a newly saved account, and the target cooldown expiring at ten minutes rather than the pool's four-day Retry-After. Both fail with the classifier forced false. tests/routing plus the three combo cooldown suites: 1249 pass / 21 fail against 1247 / 21 on dev, the same 21 pre-existing failures. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…pool (#6383) When every Anthropic OAuth account is cooled, the pool refuses locally with a 429 whose Retry-After restates the earliest per-account cooldown. The combo target now cools for the local fallback on that pool-local refusal instead of the restated wait (up to the 24h server-delay cap), so a resumed or newly added account is not ignored. Genuine upstream 429s (API-key providers, identified pool accounts) keep their full Retry-After. Follow-up to #6255. Co-authored-by: lidge-jun <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.