From 1a9ff65380f596eea0cc4ae2922106b9b77ddad9 Mon Sep 17 00:00:00 2001 From: mattv8 Date: Thu, 20 Aug 2026 14:08:44 -0600 Subject: [PATCH] docs(sessions): document dirty-source move choice --- .../ui/src/components/session/sidebar/DOCUMENTATION.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/ui/src/components/session/sidebar/DOCUMENTATION.md b/packages/ui/src/components/session/sidebar/DOCUMENTATION.md index 0cc1692e..874da7e0 100644 --- a/packages/ui/src/components/session/sidebar/DOCUMENTATION.md +++ b/packages/ui/src/components/session/sidebar/DOCUMENTATION.md @@ -12,10 +12,12 @@ kept at this root in `types.ts` and `utils.tsx`. - `recent/` owns Recent and managed Chats activity projections. - `folders/` owns folder DnD, bulk actions, archived folders, and folder UI. - Root session right-click and overflow menus expose `Move to worktree`: a submenu - listing existing primary and linked worktree destinations, the current target - greyed and disabled, plus a `New worktree...` action. Moving to an existing or - new destination transfers the full idle subtree; only the root session carries - uncommitted changes. + listing the canonical primary and linked worktree destinations, with the current + target disabled and a separate `New worktree...` action. Opening the submenu + refreshes the worktree topology. Moving transfers the full idle subtree. Clean + and non-Git sources move session-only; a dirty Git source prompts to move only + the session, move all source changes, or cancel. Only the root session carries + source changes during a subtree move. `MainLayout` and `VSCodeLayout` call `useSessionListSync({ isVSCode })` unconditionally. The hook publishes complete directory bootstrap demand,