fix(server): working timers no longer reset on every background wake (#15029)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Theo BrowneandClaude Opus 5.5 authored and GitHub committed 2026-10-02 21:55:57 -07:00
1 parent 9333509c91
commit 736130c2fd
9 files changed
+245 -11

No files matched your search

+3 -4
View File
@@ -1147,10 +1147,9 @@ export function sortInboxThreadsByReturn<
);
}
/** The timestamp a working thread's elapsed label counts from: the running
turn's start (request time until adoption), falling back to the session's
last transition when the turn projection lags behind. Malformed
timestamps fall through to the next candidate, not just missing ones. */
/** The timestamp a working thread's elapsed label counts from: when its
current work started (request time until adoption). Background wakes do
not reset it. Malformed timestamps fall through to the next candidate. */
export function resolveWorkingStartedAt(
thread: Pick<SidebarThreadSummary, "latestRun" | "runtime">,
): string | null {