Skip to content

Include known recovery time in account pool exhaustion errors - #5226

Merged
SawyerHood merged 1 commit into
mainfrom
slopcop/issue-5224
Oct 9, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
slopcop/issue-5224

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · new-issue-autopilot

Human comments

What was wrong

The Account Pooler hub computes the earliest known account availability for Retry-After, but discards that timestamp when constructing the human-readable 429 error. This reproduces for both Claude and Codex at the proxy HTTP boundary. Reproduction and root-cause report.

What changed

Reuse the computed timestamp and rounded delay in the error message when availability is known. Preserve the existing fallback when no reset is known. Extend the existing provider-parameterized exhaustion regression rather than introducing another fixture or private test seam. No routing, status, header, JSON-shape, authentication, stored-data, dependency, CLI, or wire-contract change.

Changed-line count against the trusted main base: 10 total text lines (8 additions + 2 deletions), across two files in the existing Account Pooler subsystem. No binary changes.

How you verified

  • The locally authored HTTP-boundary regression fails for both providers on trusted main 94935ac454f26883d079bde8e38fbde9eeb48de0; a second clean checkout repeats the same failure. Both runs are by the same agent.
  • Refreshing the branch to the then-latest trusted main fe215d53234752a9cbdf31b1587b2309b6b39b2d still fails before the production fix.
  • pnpm exec turbo run test --filter=bb-plugin-account-pool -- src/server.test.ts -t 'quota exhaustion and reset with session affinity' passes both cases after the fix, including the earliest timestamp, matching delay, failover, and reset recovery.
  • pnpm exec turbo run test typecheck lint --filter=bb-plugin-account-pool: all 349 tests pass; typecheck passes; lint has zero errors and two pre-existing warnings in unchanged UI code.
  • Frozen install and full trusted-base Turbo build succeed. Formatting and git diff --check pass.

Fixes #5224

AGENT GENERATED

@SawyerHood
SawyerHood merged commit d3d0c67 into main Oct 9, 2026
23 checks passed
@SawyerHood
SawyerHood deleted the slopcop/issue-5224 branch October 9, 2026 16:15
stephendolan added a commit to stephendolan/bb that referenced this pull request Oct 13, 2026
Incorporate upstream get-bb#5130, get-bb#5226, get-bb#5283 and settings/clipboard fixes. Keep retry availability scoped to durable conversation assignments, including parent pools and spend-control recovery. Build the managed package against BB 0.46.0 SDK 0.6.37.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Account Pooler: all-exhausted error doesn't say when an account frees up

1 participant