Skip to content

The agent that grows with you

fix(desktop): admit the near-deadline 'still waiting on' wait notice in the status row

teknium15b27b4a62879
diff --git a/apps/desktop/src/store/provider-wait.test.ts b/apps/desktop/src/store/provider-wait.test.ts
index 9c5e6bc1439..a4caea63d4a 100644
--- a/apps/desktop/src/store/provider-wait.test.ts
+++ b/apps/desktop/src/store/provider-wait.test.ts
@@ -17,6 +17,15 @@ describe('providerWaitText', () => {
expect(providerWaitText('⏳ waiting on local-model — 30s with no output yet')).not.toBe('')
expect(providerWaitText('◉_◉ cogitating...')).toBe('')
})
+
+ it('accepts the near-deadline update minted by agent/chat_completion_wait_notice.wait_notice_text', () => {
+ // Exact output of wait_notice_text('gpt-5.5', 290, 'first_event', ('TTFB', 10)); rejecting it
+ // left the status row on the stale first notice until the reconnect.
+ const frame =
+ '⏳ still waiting on gpt-5.5 — 290s waiting for the first provider event (auto-reconnect: TTFB watchdog in 10s)'
+
+ expect(providerWaitText(frame)).toBe(frame)
+ })
})
describe('parseModelLoadWait', () => {
diff --git a/apps/desktop/src/store/provider-wait.ts b/apps/desktop/src/store/provider-wait.ts
index 7ecaffb59f3..39ab8f35de4 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*(?:waiting on|loading|processing prompt|no (?:output|response)|model returned)/i.test(value)
+ return /^(?:⏳|⚠|↻|⚙)\s*(?:(?:still\s+)?waiting on|loading|processing prompt|no (?:output|response)|model returned)/i.test(value)
? value
: ''
}