Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(threads): keep snoozed threads hidden when work finishes #7179

Closedmaslinedwin(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/7179/headopened View on GitHub

Showing 4 changed files with 14 additions and 29 deletions (loading 1).

x
0 of 4 viewed, 4 left
2 additions and 2 deletionsapps/server/src/orchestration/decider.tsModified
View file
@@ -1200,8 +1200,8 @@
// cleared here: snooze never pauses the agent, so its session starting
// or erroring is not the user re-engaging. Blocked/failed work still
// surfaces immediately — effectiveSnoozed refuses to classify a thread
- // with a raised hand (approval / input / failure / fresh completion)
- // as snoozed, without spending the return ticket.
+ // with a raised hand (approval / input / fresh failure) as snoozed,
+ // without spending the return ticket. Completion is not a raised hand.
const isSessionActivity =
command.session.status === "starting" || command.session.status === "running";
// Real activity resets ANY override (settled wakes, active unpins).
5 additions and 4 deletionsapps/web/src/components/Sidebar.tsxModified
View file
@@ -804,10 +804,11 @@
// A woken thread reappears at its original position (the sort is
// deliberately static), so the pill has to carry the weight. Snoozing is
// an explicit act, so the pill clears only when the user re-engages:
- // reading a completion-triggered wake, clicking the pill, sending a
- // message, settling, archiving, or a change request state that settles the
- // thread. Timer wakes survive a mere visit. An unparseable visit timestamp
- // counts as never-visited, so corrupt local data cannot eat the wake signal.
+ // visiting after a blocking early wake (approval / user-input / fresh
+ // error), clicking the pill, sending a message, settling, archiving, or a
+ // change request state that settles the thread. Timer wakes survive a mere
+ // visit. An unparseable visit timestamp counts as never-visited, so
+ // corrupt local data cannot eat the wake signal.
const lastVisitedDate = lastVisitedAt === undefined ? null : parseTimestampDate(lastVisitedAt);
const wokeAtDate = props.wokeAt === null ? null : parseTimestampDate(props.wokeAt);