Files
t3code/apps/web
Theo BrowneandClaude Opus 5 cf2b02f8e9 fix(mobile): name the real reason a snooze was refused; share wake label
Addresses two Bugbot findings on the merge commit.

canSnooze refuses for two unrelated reasons — the agent is blocked on the
user, or a turn start is still queued — but the alert only described the
first. A user whose thread was mid-start went looking for a pending
request that didn't exist. Each branch now says what actually happened.

snoozeWakeLabel was duplicated almost line-for-line between web's
Sidebar.snooze.ts and mobile's threadListV2.ts, so the two platforms
could drift on the same thresholds. It now lives in client-runtime beside
canSnooze/effectiveSnoozed, which both platforms already import, and both
re-export it from where their callers expect. It takes `{ now: string }`
like every other function in that module — client-runtime's Effect lint
bans `new Date()` — which also makes a malformed clock degrade to "now"
rather than NaN. Its tests move to the owning package, keeping mobile's
sub-minute case that web's lacked.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-07-27 16:17:30 -07:00
..
2026-07-27 22:37:18 +00:00