Repository navigation
Commit 6528a5f
fix(server): auto resume Claude gateway 429s that report a reset time
Gateways that pool Claude accounts, such as CLIProxyAPI, answer a usage
limit with a plain 429. The Claude CLI drops Retry-After and emits no
rate_limit_event for API-key auth, so the run failed with no resetAt and
the limit banner could not schedule a resume. Read the gateway's
"(reset after <duration>)" cooldown from 429 results too, sharing the
parser with the 9router 503 case.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent d6fb62a commit 6528a5f
2 files changed
Lines changed: 81 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5526 | 5526 | | |
5527 | 5527 | | |
5528 | 5528 | | |
| 5529 | + | |
| 5530 | + | |
| 5531 | + | |
| 5532 | + | |
| 5533 | + | |
| 5534 | + | |
| 5535 | + | |
| 5536 | + | |
| 5537 | + | |
| 5538 | + | |
| 5539 | + | |
| 5540 | + | |
| 5541 | + | |
| 5542 | + | |
| 5543 | + | |
| 5544 | + | |
| 5545 | + | |
| 5546 | + | |
| 5547 | + | |
| 5548 | + | |
| 5549 | + | |
| 5550 | + | |
| 5551 | + | |
| 5552 | + | |
| 5553 | + | |
| 5554 | + | |
| 5555 | + | |
| 5556 | + | |
| 5557 | + | |
| 5558 | + | |
| 5559 | + | |
| 5560 | + | |
| 5561 | + | |
| 5562 | + | |
| 5563 | + | |
| 5564 | + | |
| 5565 | + | |
| 5566 | + | |
| 5567 | + | |
| 5568 | + | |
| 5569 | + | |
| 5570 | + | |
| 5571 | + | |
| 5572 | + | |
| 5573 | + | |
| 5574 | + | |
| 5575 | + | |
| 5576 | + | |
| 5577 | + | |
| 5578 | + | |
| 5579 | + | |
| 5580 | + | |
| 5581 | + | |
| 5582 | + | |
5529 | 5583 | | |
5530 | 5584 | | |
5531 | 5585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3516 | 3516 | | |
3517 | 3517 | | |
3518 | 3518 | | |
| 3519 | + | |
| 3520 | + | |
| 3521 | + | |
| 3522 | + | |
| 3523 | + | |
| 3524 | + | |
| 3525 | + | |
| 3526 | + | |
| 3527 | + | |
| 3528 | + | |
| 3529 | + | |
3519 | 3530 | | |
3520 | 3531 | | |
3521 | 3532 | | |
3522 | 3533 | | |
3523 | 3534 | | |
3524 | 3535 | | |
3525 | | - | |
| 3536 | + | |
| 3537 | + | |
3526 | 3538 | | |
3527 | 3539 | | |
3528 | 3540 | | |
3529 | 3541 | | |
3530 | | - | |
3531 | | - | |
3532 | | - | |
3533 | | - | |
| 3542 | + | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
3534 | 3547 | | |
3535 | | - | |
3536 | | - | |
3537 | | - | |
3538 | | - | |
3539 | | - | |
3540 | | - | |
3541 | | - | |
3542 | | - | |
3543 | | - | |
3544 | | - | |
3545 | | - | |
3546 | | - | |
3547 | | - | |
3548 | | - | |
3549 | | - | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
3550 | 3556 | | |
3551 | 3557 | | |
3552 | 3558 | | |
| |||
3583 | 3589 | | |
3584 | 3590 | | |
3585 | 3591 | | |
| 3592 | + | |
3586 | 3593 | | |
3587 | 3594 | | |
3588 | 3595 | | |
| |||
0 commit comments