From bcea5371c8194097e867cc0d49a97e7eb958c5df Mon Sep 17 00:00:00 2001 From: nousbot-eng Date: Fri, 17 Jul 2026 14:59:51 -0400 Subject: [PATCH] fmt(js): `npm run fix` on merge (#66465) Co-authored-by: github-actions[bot] --- apps/desktop/src/store/session-states.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/desktop/src/store/session-states.ts b/apps/desktop/src/store/session-states.ts index 12a515509fe8..abe42c29a6de 100644 --- a/apps/desktop/src/store/session-states.ts +++ b/apps/desktop/src/store/session-states.ts @@ -61,6 +61,7 @@ function armWatchdog(runtimeId: string) { if (existing) { clearTimeout(existing) } + sessionWatchdogTimers.set( runtimeId, setTimeout(() => { @@ -113,6 +114,7 @@ function handleTransition(previous: ClientSessionState | null, next: ClientSessi if (runtimeId === $activeSessionId.get()) { setActiveSessionStoredId(next.storedSessionId) } + clearSettled(previous.storedSessionId) } @@ -128,6 +130,7 @@ function handleTransition(previous: ClientSessionState | null, next: ClientSessi if (!storedId) { return } + const wasWorking = previous?.busy ?? false if (next.busy && !wasWorking) {