The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): keep composer chrome out of the pop-out gesture
Brooklyn Nicholson1e355116a1ff
diff --git a/apps/desktop/src/app/chat/composer/hooks/use-popout-drag.ts b/apps/desktop/src/app/chat/composer/hooks/use-popout-drag.tsindex e4a53889e5b..4af64604043 100644--- a/apps/desktop/src/app/chat/composer/hooks/use-popout-drag.ts+++ b/apps/desktop/src/app/chat/composer/hooks/use-popout-drag.ts@@ -49,7 +49,15 @@ function gestureTargetOk(target: EventTarget | null) {return false}- return !target.closest('button, a, input, textarea, select, [role="menuitem"], [data-radix-popper-content-wrapper]')+ // `composer-no-drag`: chrome that lives inside the composer root but isn't+ // part of the draggable frame — the floating pill strips. The pills are+ // `button`s and already excluded, but the strip's own box (the gaps between+ // pills) isn't, so without this a press landing between two badges still+ // drags. The strips are `w-fit`, so this costs the grab band only the width+ // of the badges themselves.+ return !target.closest(+ 'button, a, input, textarea, select, [role="menuitem"], [data-radix-popper-content-wrapper], [data-slot="composer-no-drag"]'+ )}/** Floating composer's 5px outer frame — grab here to drag without long-press. */