The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): stop the sidebar drag sensor from swallowing Space in text inputs
David Metcalfe7a468192491a
diff --git a/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsx b/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsxindex 3e8c5f4e9b5..a8f736c1580 100644--- a/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsx+++ b/apps/desktop/src/app/chat/sidebar/projects/overview-row.tsx@@ -225,8 +225,8 @@ export function ProjectOverviewRow({// The label is grab surface too, not just the lead's grabber — same// listeners, minus the controls that keep their own gestures. A project// row has no rival drag (its title navigates on CLICK), so the sortable- // owns the press outright.- {...dragHandleProps}+ // owns the press outright. Pointer activator only — the keyboard+ // activator stays on the grabber (#83617).onPointerDown={event => {if ((event.target as HTMLElement).closest('[data-reorder-handle], [data-row-actions]')) {returndiff --git a/apps/desktop/src/app/chat/sidebar/session-row.tsx b/apps/desktop/src/app/chat/sidebar/session-row.tsxindex 7ef1a09d141..9f9b4abc2f1 100644--- a/apps/desktop/src/app/chat/sidebar/session-row.tsx+++ b/apps/desktop/src/app/chat/sidebar/session-row.tsx@@ -377,7 +377,12 @@ function SidebarSessionRowImpl({// target (the session drop denies: side chrome hosts no main tile);// over the tree only the session drop does (no sortable row there).// Whichever one the release lands on is the one that commits.- {...dragHandleProps}+ //+ // Only the POINTER activator reaches the shell. The full handle+ // (role/tabIndex + dnd-kit's keyboard activator) lives on the grabber:+ // spread here it made every focused row control a keyboard drag+ // activator, and an armed KeyboardSensor eats Space/Enter window-wide+ // (#83617: the rename dialog swallowed spaces).onPointerDown={event => {// The grabber already carries these same listeners, and the ⋯// cluster keeps its own gestures.