From 8717043ff7a36c527c9e85ed6365045c92d2bf3b Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Tue, 28 Jul 2026 06:15:24 -0700 Subject: [PATCH] Keep woke threads active after visits --- apps/web/src/components/ChatView.tsx | 2 ++ packages/client-runtime/src/state/threadSettled.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsx index 8b2b6f6135..7069e528dd 100644 --- a/apps/web/src/components/ChatView.tsx +++ b/apps/web/src/components/ChatView.tsx @@ -4035,10 +4035,12 @@ function ChatViewContent(props: ChatViewProps) { now: `${nowMinute}:00.000Z`, autoSettleAfterDays, changeRequestState: activeThreadPr?.state ?? null, + suppressAutoSettle: activeThreadWokeAt !== null, }); }, [ activeThreadPr?.state, activeThreadShell, + activeThreadWokeAt, autoSettleAfterDays, nowMinute, supportsSettlement, diff --git a/packages/client-runtime/src/state/threadSettled.ts b/packages/client-runtime/src/state/threadSettled.ts index 054da09036..a03ca54c45 100644 --- a/packages/client-runtime/src/state/threadSettled.ts +++ b/packages/client-runtime/src/state/threadSettled.ts @@ -234,7 +234,7 @@ export function effectiveSettled( readonly autoSettleAfterDays: number | null; readonly changeRequestState?: ChangeRequestStateLike | null; /** Keep an attention-bearing thread active while still honoring an - explicit user settle. Used by the sidebar while a wake is unvisited. */ + explicit user settle. Used while a thread retains a completed wake. */ readonly suppressAutoSettle?: boolean; }, ): boolean {