Repository navigation
fix(agent): quota枯渇時のagy失敗を quota-exhausted に分類する (#229) - #230
Conversation
…229) agy exits 3 with RESOURCE_EXHAUSTED (code 429) when the model quota window is exhausted. The classifier mapped these to agy-error or, when the error payload tripped the auth heuristic, auth-required. Check for quota-exhaustion signals before the auth heuristic so callers can distinguish quota deferral from credential failure. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
RESOURCE_EXHAUSTED (code 429)を返した際、classifier がagy-error/auth-requiredに誤分類することを確認run.code !== 0分岐で quota 枯渇シグナル(RESOURCE_EXHAUSTED/quota reached/rate limit/429)を auth heuristic より先に判定しquota-exhaustedに分類--min-remaininggate の既存挙動は変更なしTest plan
bun test script/agent.agy-review.test.ts— 34 pass(RESOURCE_EXHAUSTED → quota-exhausted、quota+auth混在stderrでquota優先の2件追加)bunx tsc --noEmitclean./script/test./script/test-workflow./script/check-secretspassIndividual quota reached ... Resets in 2h37m)を再現する stub で分類を確認Generated with Devin
Summary by CodeRabbit