Skip to content

fix(runner): retry a run after a provider rate limit before any tool call - #45

Merged
yusukebe merged 1 commit into
mainfrom
fix/runner-retry-429
Sep 10, 2026
Merged

yusukebe merged 1 commit into
mainfrom
fix/runner-retry-429

Conversation

@yusukebe

Copy link
Copy Markdown
Member

In the 09-07 weekly matrix, 51 of 80 Opus adoption runs failed with 429 Wholesale Rate limited from the AI Gateway even at concurrency 1, so the site's Opus adoption cells show "Failed". A 429 before the agent has touched the workspace is not a measurement; the runner now waits (15s, 45s, 90s) and starts the conversation again, up to three times, and records rateLimitRetries in the run metrics (optional field, no schema bump). A rate limit mid-run still fails the run, since replaying tool calls on a modified workspace would not be the same measurement.

  • Add tests
  • Run tests
  • pnpm format && pnpm lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

…call

Opus runs through the AI Gateway fail with 429 Wholesale Rate limited even at concurrency 1: 51 of 80 Opus adoption runs in the 09-07 matrix. A 429 before the agent has touched the workspace is not a result, so the runner now waits (15s, 45s, 90s) and starts the conversation again, up to three times, and records the retries in the run metrics. A rate limit mid-run still fails the run: replaying tool calls on a modified workspace would not be the same measurement.
@yusukebe
yusukebe merged commit dbb9541 into main Sep 10, 2026
1 check passed
@yusukebe
yusukebe deleted the fix/runner-retry-429 branch September 10, 2026 07:57
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.

1 participant