From 0595af0ad19b9b825e0fa6668a19069563ff482a Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Fri, 12 Jun 2026 18:26:38 -0500 Subject: [PATCH] feat(desktop): move workspace/worktree drag handle into the leading icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mirror the session row: the repo/worktree header's leading glyph (repo mark, or a new git-branch mark for worktrees) swaps to a grabber on hover/drag instead of carrying a separate handle on the right — freeing header width for the label and + button. --- apps/desktop/src/app/chat/sidebar/index.tsx | 123 ++++++++++++-------- 1 file changed, 75 insertions(+), 48 deletions(-) diff --git a/apps/desktop/src/app/chat/sidebar/index.tsx b/apps/desktop/src/app/chat/sidebar/index.tsx index be88f05e319..472ef8fdb18 100644 --- a/apps/desktop/src/app/chat/sidebar/index.tsx +++ b/apps/desktop/src/app/chat/sidebar/index.tsx @@ -1458,6 +1458,20 @@ function SidebarWorkspaceGroup({ const hiddenCount = Math.max(0, totalCount - visibleSessions.length) const nextCount = Math.min(pageStep, hiddenCount) + // Leading glyph: profile color dot, platform avatar, or a branch mark for a + // worktree. When reorderable it doubles as the drag handle (icon ↔ grabber). + const leadingIcon = group.color ? ( +