Repository navigation
Include known recovery time in account pool exhaustion errors - #5226
Merged
Merged
Conversation
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.
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚨 SLOP COP 🚨 ·
new-issue-autopilotHuman 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
94935ac454f26883d079bde8e38fbde9eeb48de0; a second clean checkout repeats the same failure. Both runs are by the same agent.fe215d53234752a9cbdf31b1587b2309b6b39b2dstill 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.git diff --checkpass.Fixes #5224