Two low-severity findings from a gpt-5.6-sol (Codex) review of the branch:
- snoozeThread/unsnoozeThread lacked the per-thread in-flight guard the
other lifecycle actions get from executeAction, so rapid taps queued
duplicate commands and stacked one failure alert per tap. Both now
share a keyed guard (one set: snooze and wake on the same thread are
mutually exclusive too).
- Snoozed rows exposed only the thread title to VoiceOver/TalkBack; the
wake countdown — the row's whole story visually — was invisible.
The accessible label now reads "…, snoozed, wakes in 2h".
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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]>
Prepare Relay production infrastructure for the PlanetScale PS_20 HA topology, upgrade Effect and Alchemy to compatible betas, reconcile migration state, and preserve patched MCP session termination behavior.\n\nCo-authored-by: codex <[email protected]>
Three memoization defects found in review, all invisible to the pure
partition tests:
- The iPad row comparator ignored `snoozed`, and a timer wake changes no
shell field — so a woken thread that also classified as settled kept
its blue countdown and Wake action until an unrelated update landed.
- The sidebar's renderListItem closed over `snoozedShelfExpanded` without
it in the dep array, so the header always drew the collapsed chevron
and count regardless of state. Expansion now travels on the list item
itself, which also lets the comparator see it change.
- The countdown label was computed inside the memoized row from
`new Date()`, so it froze at first render — "2h" stayed "2h" as the
wake approached. Both surfaces now compute it against their existing
minute tick and pass it down, matching web's snoozeWakeLabelText.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Mobile could snooze a thread but never see it again: snoozedCount only fed
the empty state, so snoozed threads were invisible whenever any other
thread existed, and nothing anywhere called thread.unsnooze. The swipe
Snooze action added earlier in this branch made that a one-way door.
Ports the desktop snoozed shelf (SidebarV2, #4311) to both mobile v2
surfaces:
- buildThreadListV2Items now returns snoozed rows between the inbox and
the settled tail, sorted soonest-wake-first, plus the index where the
shelf header belongs. Collapsed by default like web; the open thread
keeps its row so a snoozed thread opened in iPad split view can't
vanish behind a closed shelf.
- Snoozed rows show their wake time ("2h", "3d") in blue instead of last
activity, via snoozeWakeLabel ported from web's Sidebar.snooze.ts.
- Waking: swipe primary becomes Wake, long-press menu offers "Wake
thread", both routed through a new unsnoozeThread action. Snooze is not
offered on an already-snoozed row.
- Drops the all-snoozed empty states on both surfaces — the shelf header
renders whenever anything is snoozed, so the list is never truly empty.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
ThreadSwipeable treated an absent secondaryAction as "use the v1 Delete
default", so v2 rows that gate Snooze off (unsupported server, or a thread
blocked on the user) silently exposed a destructive Delete the row never
advertised. secondaryAction now distinguishes undefined (v1 default) from
explicit null (single-action tray): the tray shrinks to one button, every
animation range derives from the actual tray width, and a full swipe can
only commit the primary action.
Snooze eligibility is also time-gated by the queued-turn-start grace
window, and was evaluated once at render with no clock dependency, so a
row could stay Snooze-less indefinitely after the window lapsed. Rows now
arm a one-shot timer at the exact expiry via
resolveThreadListV2SnoozeGateExpiryMs.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>