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]>