Skip to content

Support Claude and Codex extra-usage fallback and availability - #4531

Merged
ymichael merged 6 commits into
mainfrom
bb/investigate-extra-usage-support-in-the-account-thr_zhebfwg2vz
Sep 30, 2026
Merged

ymichael merged 6 commits into
mainfrom
bb/investigate-extra-usage-support-in-the-account-thr_zhebfwg2vz

Conversation

@ymichael

@ymichael ymichael commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Account Pooler excluded Claude and Codex accounts at the subscription switch threshold even when the provider reported available extra usage or credits. Requests could receive the pooler's own 429 before reaching the provider. See #4475 and #4533.

What changed

Track Claude extra usage and Codex credit availability from usage responses and headers, persist it, and allow exhausted accounts as fallback while preferring usable accounts below the subscription threshold. Recheck exhausted accounts before fallback and return pinned conversations to recovered subscription quota. Show an “Extra usage available” pill in Settings only for allowed availability; this does not claim current billing activity. CLI tables and account/status RPCs expose the same observation, with guide and skill documentation updated.

Adds plugin-local quota migrations, extraUsage observations, and usageRestriction reasons/reset times. Codex credit-depletion and spending-control restrictions block routing even below subscription thresholds; matching refreshed observations clear recovered restrictions. Credit-only updates work and unrelated updates preserve availability. No public Plugin SDK or server/daemon wire changes. Model entitlement selection in #3615 remains separate.

How you verified

  • pnpm exec turbo run test typecheck lint --filter=bb-plugin-account-pool: 341 tests pass, typecheck passes, lint has zero errors (two existing warnings).
  • Regression coverage exercises allowed/disabled/spent/unknown allowance, shared and family window fallback, recovery of pinned conversations, header observations, restart persistence, and overage rejection.
  • Real plugin Settings verified at head 4dfa31b9ac276965a2730db10ebcdc202c819281 in Chromium at 1280px and 390px: allowed Claude/Codex fixtures show the pill; disallowed fixtures do not. Navigation through the Settings plugin link works. No real paid requests were made.
  • Production build passes, including marketplace overview generation.

Fixes #4475
Fixes #4533

AGENT GENERATED

@ymichael ymichael changed the title Allow Claude extra-usage fallback and show availability in Account Pooler Support Claude and Codex extra-usage fallback and availability Sep 30, 2026
ymichael and others added 2 commits September 30, 2026 13:24
Match the Codex client: only workspace credit-depletion and usage-limit
reasons block an account. Unknown or new limit types no longer leave the
account blocked with no reset time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Anthropic sends overage-status on ordinary responses to report extra-usage
availability, so a short 429 on an account with extra usage off looked like
exhausted quota and skipped the wait-once retry. Exhausted overage already
comes with rejected 5h/7d windows, which still count as quota rejections.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit 41b9f1f into main Sep 30, 2026
20 checks passed
@ymichael
ymichael deleted the bb/investigate-extra-usage-support-in-the-account-thr_zhebfwg2vz branch September 30, 2026 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant