Skip to content

The agent that grows with you

fix(desktop): preserve tab styling through context menu composition

ghgoodreau8c4ab7b8b37f
diff --git a/apps/desktop/DESIGN.md b/apps/desktop/DESIGN.md
index 675ea1052e3..4f0f5c54d4d 100644
--- a/apps/desktop/DESIGN.md
+++ b/apps/desktop/DESIGN.md
@@ -329,6 +329,9 @@ binding and hovered/focused-zone resolver as the number shortcuts.
Tab close buttons fade the label with a content mask, not a painted gradient.
The tab reads its surface token directly so glass tint is painted only once.
+Close glyphs keep a 24px hit area, including session tabs wrapped in context menus.
+`PaneTab` owns its `data-slot` marker after forwarded props so composition cannot
+disable that width or the label mask.
Sticky user messages clip covered scrolling content, including the gap above
them. Their wrappers stay unpainted; only the rounded user bubble owns a fill.
diff --git a/apps/desktop/src/components/ui/pane-tab.tsx b/apps/desktop/src/components/ui/pane-tab.tsx
index 6999705fd33..ff5bdd96200 100644
--- a/apps/desktop/src/components/ui/pane-tab.tsx
+++ b/apps/desktop/src/components/ui/pane-tab.tsx
@@ -113,7 +113,6 @@ export const PaneTab = React.forwardRef<HTMLDivElement, PaneTabProps>(function P
data-active={active}
data-closeable={(onClose && !vertical) || undefined}
data-selected={selected || undefined}
- data-slot="pane-tab"
data-vertical={vertical || undefined}
onClickCapture={event => {
// Sites whose tab activates on the label's own onClick (the preview
@@ -152,6 +151,7 @@ export const PaneTab = React.forwardRef<HTMLDivElement, PaneTabProps>(function P
}}
ref={ref}
{...props}
+ data-slot="pane-tab"
>
<div
className={cn('pane-tab-content flex h-full min-w-0 max-w-full flex-1 items-center', vertical && 'contents')}