- Worktree-removal offer works after settle: archived threads leave the
live shell store, so the orphan check re-includes the settled shell and
click-time revalidation treats absence-from-live as still-settled
- Un-settle is only offered when there is an archive to undo: auto-settled
rows (inactivity / merged PR, archivedAt null) get Settle instead, on
web (hover button + context menu) and mobile (swipe + long-press menu)
- Mobile optimistic settled hold rolls back when the settle is blocked or
fails (settleThread now reports success); web and mobile both drop holds
on delete and un-settle so ghosts can't linger
- Archived snapshot refreshes after delete too, clearing stale settled
rows sourced from the snapshot
- v2 mobile list renders queued offline tasks above the cards (they were
dropped entirely, leaving a blank screen for pending-task-only projects)
On the chat.new/settings finding: not fixed here — the shortcut routes to
the v2 picker only inside chat routes by design; on /settings it falls
back to contextual create, matching v1's behavior on those routes.
Co-Authored-By: Claude Fable 5 <[email protected]>
- settleThread inherits archive's running-turn guard on web and mobile:
settling can never interrupt an active turn
- unsettleThread no-ops on auto-settled (unarchived) threads instead of
sending an unarchive the server would reject
- Mobile v2 partition now receives per-row PR state (rows report up via
onChangeRequestState, mirroring web) so merged/closed PRs auto-settle
- Mobile empty state accounts for archived-only workspaces when v2 is on
- Optimistic settled hold on web + mobile: the shell being settled is kept
visible (marked archived) between the live stream dropping it and the
archived snapshot returning it — no flicker, and holds are created only
at settle time so deletes are never resurrected
- Hover-only settle buttons in web SidebarV2 get focus-visible:opacity-100
- v2 full swipe commits the advertised primary action (Settle/Un-settle),
with the stretch animation following; delete remains a tap target only.
v1 keeps full-swipe delete via the new fullSwipeAction prop default
- Android long-press on v2 cards works: PressableScaleCard is the menu's
direct child and forwards the injected onLongPress to its Pressable
Co-Authored-By: Claude Fable 5 <[email protected]>
Makes the new sidebar/thread-list testable against existing unupgraded
servers by removing every backend dependency of the settled feature:
- apps/server, contracts orchestration schemas, and client-runtime
command/reducer plumbing revert to main baseline (no thread.settle
commands, no settled events/fields, no migration 033)
- effectiveSettled() is now archive-based: archivedAt is the explicit
settled signal; PR merged/closed and inactivity auto-settle keep
working client-side. Blocked work (pending approval/input, live
session) still never settles
- settle/unsettle actions ride threadEnvironment.archive/unarchive on
web and mobile — UI and UX unchanged
- Archived threads stay visible as the settled tail: the live shell
stream drops archived threads (thread.archived → thread-removed), so
both clients merge them back from the archived shell snapshot and
refresh it after settle/unsettle/archive actions
- Client settings (sidebarV2Enabled, sidebarAutoSettleAfterDays) are
kept — they persist client-side only
Trade-offs vs the event-sourced model (still on t3code/sidebar-v2-mobile):
no activity-driven auto-un-settle for archived threads, and no "keep
active" override distinct from unarchiving.
Co-Authored-By: Claude Fable 5 <[email protected]>
The first mobile pass copied the web card anatomy (outlined translucent
box, thin header strip) — which is exactly iOS push-banner anatomy, so
rows read as information rather than buttons. Rebuild the card around
native list-app touch signals:
- Solid raised bg-card surface, no border, 18pt continuous corners
- Leading 38pt favicon tile as the touch anchor; mono project name
becomes an eyebrow line above the title
- Trailing chevron affordance; timestamp joins the eyebrow row
- Spring press feedback (scale to 97%) via reanimated
- Status edge strip survives as a full-height bar on the left edge
Settled rows, swipe actions, and long-press menus unchanged.
Co-Authored-By: Claude Fable 5 <[email protected]>
Ports the web sidebar v2 design to React Native behind a device-local
Settings → Beta toggle (threadListV2Enabled — mobile has no
client-settings sync, so the flag lives in mobile preferences):
- threadListV2.ts: v2 status model (approval/working/failed/ready),
static creation-order sort, and the effectiveSettled partition into
an active card block + settled recency tail (shared
@t3tools/client-runtime/state/thread-settled, web-default 3-day
auto-settle)
- thread-list-v2-items.tsx: square title-bar cards — project favicon +
mono uppercase name as chrome, status edge strip, two-line titles,
branch/status meta — and dimmed slim rows under a SETTLED divider
- Settle (cards) / un-settle (slim) as the primary swipe action and in
the long-press menu; useThreadListActions grows settle/unsettle via
the shared threadEnvironment atoms
- HomeScreen renders the flat v2 list (no grouping, rows never reorder
on activity) when the toggle is on; v1 list untouched otherwise
Co-Authored-By: Claude Fable 5 <[email protected]>
CI: add settledOverride/settledAt + new client settings to desktop and
mobile test fixtures and the mobile threadDetailToShell mapping.
Review fixes (cursor bugbot + macroscope):
- failed status now requires session.status === "error" instead of any
lingering lastError on a stopped/ready session
- effectiveSettled: pending approvals or user input always win — blocked
work can never collapse into the settled tail, even manually settled
- decider unsettle-on-activity guards check settledOverride === "settled"
so activity no longer erases a user's explicit keep-active override
- repeat thread.settle re-emits with updatedAt = original settledAt, so
double-settles no longer bump recency ordering
- sidebarAutoSettleAfterDays bounded 1..90 in schema and patch
- approval wait sort/label use shell.updatedAt (bumped by the approval
activity in the projection pipeline) instead of latestUserMessageAt /
turn start, with the approximation documented
- v2 rows: Enter/Space keyboard activation; double-click inline rename
ported from v1 plus a context-menu Rename entry
- new-thread picker: cross-project creation no longer inherits the active
thread's branch/worktree; preselection consults the active draft via
resolveThreadActionProjectRef; stale project scope resets to All
- settle worktree prompt: vcs status checked before offering (and again
at click time) — dirty or ahead worktrees are never offered
Co-Authored-By: Claude Fable 5 <[email protected]>