Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apps/desktop/src/store/session-states.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function armWatchdog(runtimeId: string) {
if (existing) {
clearTimeout(existing)
}

sessionWatchdogTimers.set(
runtimeId,
setTimeout(() => {
Expand Down Expand Up @@ -113,6 +114,7 @@ function handleTransition(previous: ClientSessionState | null, next: ClientSessi
if (runtimeId === $activeSessionId.get()) {
setActiveSessionStoredId(next.storedSessionId)
}

clearSettled(previous.storedSessionId)
}

Expand All @@ -128,6 +130,7 @@ function handleTransition(previous: ClientSessionState | null, next: ClientSessi
if (!storedId) {
return
}

const wasWorking = previous?.busy ?? false

if (next.busy && !wasWorking) {
Expand Down
Loading