The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): show provider retry and auto-recovery waits in the status row
Adolan861893da2fcb
diff --git a/apps/desktop/src/store/provider-wait.test.ts b/apps/desktop/src/store/provider-wait.test.tsindex a4caea63d4a..4ae8a75e20a 100644--- a/apps/desktop/src/store/provider-wait.test.ts+++ b/apps/desktop/src/store/provider-wait.test.ts@@ -28,6 +28,20 @@ describe('providerWaitText', () => {})})+describe('providerWaitText accepts retry and auto-recovery frames', () => {+ // Minted by agent/turn_recovery.py (retry backoff) and+ // agent/turn_recovery_autorecover.ladder_notice (outage ladder). Rejecting+ // them left a bare timer for minutes while the backend slept between retries.+ it.each([+ '⏳ rate limited — resets in 2m, retrying in 30s (attempt 2/3)',+ '⏳ provider overloaded — resets in 1m, retrying in 15s (attempt 1/3)',+ '⏳ waiting on provider — retrying in 6s (attempt 1/3)',+ '⏳ Provider temporarily unavailable — retrying automatically in 18s (cycle 1/5); press Esc to stop'+ ])('%s', frame => {+ expect(providerWaitText(frame)).toBe(frame)+ })+})+describe('parseModelLoadWait', () => {it('extracts model and percent from a load frame', () => {expect(diff --git a/apps/desktop/src/store/provider-wait.ts b/apps/desktop/src/store/provider-wait.tsindex 34bc49973d6..fb4ccec3721 100644--- a/apps/desktop/src/store/provider-wait.ts+++ b/apps/desktop/src/store/provider-wait.ts@@ -45,7 +45,7 @@ export function clearAllProviderWaits(): void {export function providerWaitText(text: string): string {const value = text.trim()- return /^(?:⏳|⚠|↻|⚙)\s*(?:(?:still\s+)?waiting on|loading|processing prompt|no (?:output|response)|model returned)/i.test(+ return /^(?:⏳|⚠|↻|⚙)\s*(?:(?:still\s+)?waiting on|loading|processing prompt|no (?:output|response)|model returned|rate limited|provider (?:overloaded|temporarily unavailable))/i.test(value)? value