getApiKey() retry loop (3 attempts, ~12s) couldn't outlast the 30s rate-limit backoff window, causing cooldown errors to cascade through the auto-loop and trigger a hard stop after 3 consecutive failures. - Add AuthStorage.getEarliestBackoffExpiry() to expose when the next credential becomes available - Update getApiKey() to sleep until backoff expiry (up to 60s) instead of fixed 2s/4s/6s delays - Add isTransientCooldownError() detector in infra-errors.ts - Auto-loop now waits 35s on cooldown errors without incrementing the consecutive error counter Closes #4052 |
||
|---|---|---|
| .. | ||
| daemon | ||
| mcp-server | ||
| native | ||
| pi-agent-core | ||
| pi-ai | ||
| pi-coding-agent | ||
| pi-tui | ||
| rpc-client | ||