The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): place tooltips around rows and controls consistently
brooklyn!1b7c9f6f9f45
diff --git a/apps/desktop/DESIGN.md b/apps/desktop/DESIGN.mdindex 65f9e02249d..7f89dc47bef 100644--- a/apps/desktop/DESIGN.md+++ b/apps/desktop/DESIGN.md@@ -153,10 +153,14 @@ fails on any `<button>` / `<Button>` that still carries `title=`.the way somewhere else. `Tip` waits 200ms before the first open so a sweepdoes not flash a trail. After a tip has opened the page is warm: the nexttrigger within 300ms opens instantly. The cooldown starts on close, so a-hover a second later waits again. Close is immediate. `OverflowTip` stays-on its own longer delay (list titles must not trail while scanning).+hover a second later waits again. Once triggered, entrance has no animation.+Exit fades over 100ms and moves 0.125rem toward the anchor; reduced motion+disables the exit animation. `OverflowTip` stays on its own longer delay+(list titles must not trail while scanning). Bubbles use a 0.25rem radius.-**Slash descriptions.** Keep autocomplete rows single-line and ellipsized, but reveal the complete catalog description in the shared themed tooltip when hovering anywhere on a slash row. Size that tooltip to the window with collision padding and word wrapping; it must not intercept row selection. Catalog and completion producers preserve the full author-supplied description.+**Tooltip placement.** Choose intent through `placement`: `control` above (default), `toolbar` below, `row` to the right, and `left-rail` / `right-rail` inward. Explicit `side` and `align` override the preference. Radix flips and shifts for collisions, keeps the arrow attached, and hides detached triggers. Controls and toolbars use their owning pane as a boundary; row descriptions and rails may extend into the window. Use `boundary="viewport"` for an intentional escape. Short labels size to content; descriptions wrap within 24rem and the available space, in one rounded bubble.++**Slash descriptions.** Keep autocomplete rows single-line and ellipsized, but reveal the complete catalog description to the right of the hovered row. Use the shared bounded tooltip, collision padding, and word wrapping; it must not intercept row selection. Catalog and completion producers preserve the full author-supplied description.**Model search.** Model filters and their highlighted labels treat hyphens, dots, underscores and spaces equivalently. Preserve original label spelling inside marks. The shared highlighter remains literal for other surfaces such as the command palette; model callers explicitly opt in. Model identifier search does not use dictionary spellcheck.@@ -200,7 +204,7 @@ blurred backdrop.- **`FanMenu`** (`src/components/ui/fan-menu.tsx`) — one hub control thatfans sibling toggles out on hover: `direction` `vertical` | `horizontal`(split around the hub) | `arc`. Discs are `Button` `floating` off /- `default` on; tips anchor left by default. Use it where a row of rarely+ `default` on; tips face outside the fan according to its geometry. Use it where a row of rarelytouched toggles is costing input width (the composer's voice controls).## Layoutdiff --git a/apps/desktop/src/app/chat/composer/context-menu.tsx b/apps/desktop/src/app/chat/composer/context-menu.tsxindex b0e41c1c679..716d7aed383 100644--- a/apps/desktop/src/app/chat/composer/context-menu.tsx+++ b/apps/desktop/src/app/chat/composer/context-menu.tsx@@ -47,7 +47,7 @@ export function ContextMenu({return (<><DropdownMenu>- <Tip label={state.tools.label} side="left">+ <Tip label={state.tools.label} placement="control"><DropdownMenuTrigger asChild><Buttonaria-label={state.tools.label}diff --git a/apps/desktop/src/app/chat/composer/controls.tsx b/apps/desktop/src/app/chat/composer/controls.tsxindex 09ecd91e503..e83f26d37bf 100644--- a/apps/desktop/src/app/chat/composer/controls.tsx+++ b/apps/desktop/src/app/chat/composer/controls.tsx@@ -126,7 +126,7 @@ export function ComposerControls({</>)}{showQueueButton ? (- <Tip label={<TipKeybindLabel actionId="composer.queue" text={c.queueMessage} />} side="left">+ <Tip label={<TipKeybindLabel actionId="composer.queue" text={c.queueMessage} />} placement="control"><Buttonaria-label={c.queueMessage}className={GHOST_ICON_BTN}@@ -151,7 +151,7 @@ export function ComposerControls({<TipKeybindLabel actionId="composer.send" text={c.send} />)}- side="left"+ placement="control"><Buttonaria-label={showStop ? c.stop : c.send}@@ -184,7 +184,7 @@ function HudWindowButtons() {return (<>- <Tip label={t.titlebar.resetHudLayout} side="left">+ <Tip label={t.titlebar.resetHudLayout} placement="toolbar"><Buttonaria-label={t.titlebar.resetHudLayout}className={cn(GHOST_ICON_BTN, 'p-0')}@@ -196,7 +196,7 @@ function HudWindowButtons() {<Codicon name="discard" size="0.875rem" /></Button></Tip>- <Tip label={t.titlebar.exitHud} side="left">+ <Tip label={t.titlebar.exitHud} placement="toolbar"><Buttonaria-label={t.titlebar.exitHud}className={cn(GHOST_ICON_BTN, 'p-0')}@@ -242,7 +242,7 @@ function ConversationPill({{/* Keep the ear visible during voice chat — shown paused, since theconversation holds the mic (the one time wake must not listen). */}<WakeWordButton disabled={disabled} pausedForVoice />- <Tip label={muted ? c.unmuteMic : c.muteMic} side="left">+ <Tip label={muted ? c.unmuteMic : c.muteMic} placement="control"><Buttonaria-label={muted ? c.unmuteMic : c.muteMic}aria-pressed={muted}@@ -347,7 +347,7 @@ function WakeWordButton({ disabled, pausedForVoice = false }: { disabled: booleaconst tooltip = !pausedForVoice && wake.notice ? `${label} — ${wake.notice}` : labelreturn (- <Tip label={tooltip} side="left">+ <Tip label={tooltip} placement="control"><Buttonaria-label={label}aria-pressed={wake.listening && !pausedForVoice}diff --git a/apps/desktop/src/app/chat/composer/start-voice-button.tsx b/apps/desktop/src/app/chat/composer/start-voice-button.tsxindex a449f7f4606..25d2031f6e6 100644--- a/apps/desktop/src/app/chat/composer/start-voice-button.tsx+++ b/apps/desktop/src/app/chat/composer/start-voice-button.tsx@@ -33,7 +33,7 @@ export function StartVoiceButton({return (<span className="flex items-center">- <Tip label={engine ? `${label} — ${engine}` : label} side="left">+ <Tip label={engine ? `${label} — ${engine}` : label} placement="control"><Buttonaria-label={label}className={cn(PRIMARY_ICON_BTN, engine && 'rounded-r-none')}@@ -50,7 +50,7 @@ export function StartVoiceButton({</Tip>{engine ? (<DropdownMenu>- <Tip label={t.composer.voiceEngine} side="left">+ <Tip label={t.composer.voiceEngine} placement="control"><DropdownMenuTrigger asChild><Buttonaria-label={t.composer.voiceEngine}diff --git a/apps/desktop/src/app/chat/composer/status-stack/preview-row.test.tsx b/apps/desktop/src/app/chat/composer/status-stack/preview-row.test.tsxindex ed9140bc35e..8caa0ed66a5 100644--- a/apps/desktop/src/app/chat/composer/status-stack/preview-row.test.tsx+++ b/apps/desktop/src/app/chat/composer/status-stack/preview-row.test.tsx@@ -19,7 +19,7 @@ describe('PreviewStatusRow', () => {vi.restoreAllMocks()})- it('keeps the preview tooltip label in inline flow inside the portaled decoration', async () => {+ it('keeps the full path and hint in one portaled bubble beside the label', async () => {const view = render(<PreviewStatusRowitem={{ cwd: 'C:\\repo', id: 'preview.html', label: 'preview.html', target: 'preview.html' }}@@ -30,16 +30,16 @@ describe('PreviewStatusRow', () => {fireEvent.pointerMove(screen.getByText('preview.html'), { pointerType: 'mouse' })await screen.findByRole('tooltip')- const content = document.querySelector<HTMLElement>('[data-slot="tooltip-content"]')- const decoration = content?.firstElementChild+ const content = view.baseElement.querySelector<HTMLElement>('[data-slot="tooltip-content"]')+ const label = content?.querySelector('[data-slot="tooltip-label"]')expect(content).not.toBeNull()expect(view.container.contains(content)).toBe(false)- // The decoration's per-line background only wraps inline FLOW. A flex box- // (block or inline-flex) under it lights the first line and leaves the- // rest dark-on-dark, so the two lines must be split by a hard break.- expect(decoration?.querySelector('.flex, .inline-flex')).toBeNull()- expect(decoration?.querySelector('br')).not.toBeNull()+ expect(content?.classList.contains('tooltip-bubble')).toBe(true)+ expect(content?.getAttribute('data-side')).toBe('right')+ expect(label?.textContent).toContain('preview.html')+ expect(label?.querySelector('br')).not.toBeNull()+ expect(content?.querySelector('[data-slot="tooltip-arrow"]')).not.toBeNull()})it('opens remote non-HTML file artifacts in the in-app preview instead of the local browser bridge', async () => {diff --git a/apps/desktop/src/app/chat/composer/status-stack/preview-row.tsx b/apps/desktop/src/app/chat/composer/status-stack/preview-row.tsxindex 65ede65eed2..506801da44b 100644--- a/apps/desktop/src/app/chat/composer/status-stack/preview-row.tsx+++ b/apps/desktop/src/app/chat/composer/status-stack/preview-row.tsx@@ -103,15 +103,13 @@ export const PreviewStatusRow = memo(function PreviewStatusRow({ item, onDismiss><Tiplabel={- // Inline flow with a hard break, not a flex column: Tip's background- // only wraps inline content, so a flex box would light the first- // line and leave the rest dark-on-dark.<>{item.target}<br /><span className="opacity-70">{t.preview.linkHint}</span></>}+ placement="row"><span className="min-w-0 truncate text-[0.73rem] leading-4 text-foreground/92">{item.label}</span></Tip>diff --git a/apps/desktop/src/app/chat/composer/status-stack/session-control-goal.tsx b/apps/desktop/src/app/chat/composer/status-stack/session-control-goal.tsxindex 4405a25597e..a897158c171 100644--- a/apps/desktop/src/app/chat/composer/status-stack/session-control-goal.tsx+++ b/apps/desktop/src/app/chat/composer/status-stack/session-control-goal.tsx@@ -292,36 +292,34 @@ export const SessionControlGoalSection = memo(function SessionControlGoalSection<StatusSectionaccessory={<DropdownMenu onOpenChange={setMenuOpen} open={menuOpen}>- <Tip label={ctrl.goalActions}>- <span className="inline-flex">- <DropdownMenuTrigger asChild>- <Button- aria-haspopup="menu"- aria-label={ctrl.goalActions}- className="size-6 rounded-md text-muted-foreground/70 hover:text-foreground/90"- disabled={isBusy}- onClick={event => {- // Radix opens pointer interactions from pointerdown. Keyboard,- // assistive-tech, and programmatic clicks have no pointer sequence.- if (event.detail === 0) {- setMenuOpen(true)- }- }}- onKeyDown={e => {- if (e.key === 'F10' && e.shiftKey) {- e.preventDefault()- setMenuOpen(true)- }- }}- size="icon-xs"- type="button"- variant="ghost"- >- <Codicon name="ellipsis" size="0.8rem" />- </Button>- </DropdownMenuTrigger>- </span>- </Tip>+ <span className="inline-flex">+ <DropdownMenuTrigger asChild>+ <Button+ aria-haspopup="menu"+ aria-label={ctrl.goalActions}+ className="size-6 rounded-md text-muted-foreground/70 hover:text-foreground/90"+ disabled={isBusy}+ onClick={event => {+ // Radix opens pointer interactions from pointerdown. Keyboard,+ // assistive-tech, and programmatic clicks have no pointer sequence.+ if (event.detail === 0) {+ setMenuOpen(true)+ }+ }}+ onKeyDown={e => {+ if (e.key === 'F10' && e.shiftKey) {+ e.preventDefault()+ setMenuOpen(true)+ }+ }}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Codicon name="ellipsis" size="0.8rem" />+ </Button>+ </DropdownMenuTrigger>+ </span><DropdownMenuContent align="end" className="w-44">{renderMenuItems(false)}</DropdownMenuContent>@@ -426,19 +424,17 @@ export const SessionControlGoalSection = memo(function SessionControlGoalSection<Codicon name="copy" size="0.7rem" /></Button></Tip>- <Tip label={ctrl.removeCriterion(index)}>- <Button- aria-label={ctrl.removeCriterion(index)}- className="size-6 rounded text-muted-foreground/60 hover:text-destructive"- disabled={isBusy}- onClick={() => confirmRemoveCriterion(index)}- size="icon-xs"- type="button"- variant="ghost"- >- <Codicon name="close" size="0.7rem" />- </Button>- </Tip>+ <Button+ aria-label={ctrl.removeCriterion(index)}+ className="size-6 rounded text-muted-foreground/60 hover:text-destructive"+ disabled={isBusy}+ onClick={() => confirmRemoveCriterion(index)}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Codicon name="close" size="0.7rem" />+ </Button></div>}>diff --git a/apps/desktop/src/app/chat/composer/status-stack/session-control-heartbeat.tsx b/apps/desktop/src/app/chat/composer/status-stack/session-control-heartbeat.tsxindex 7d5891b013e..32ab6d0efe8 100644--- a/apps/desktop/src/app/chat/composer/status-stack/session-control-heartbeat.tsx+++ b/apps/desktop/src/app/chat/composer/status-stack/session-control-heartbeat.tsx@@ -19,7 +19,6 @@ import {DropdownMenuSeparator,DropdownMenuTrigger} from '@/components/ui/dropdown-menu'-import { Tip } from '@/components/ui/tooltip'import { useI18n } from '@/i18n'import {runSessionControlAction,@@ -150,36 +149,34 @@ export const SessionControlHeartbeatSection = memo(function SessionControlHeartb<StatusSectionaccessory={<DropdownMenu onOpenChange={setMenuOpen} open={menuOpen}>- <Tip label={ctrl.heartbeatActions}>- <span className="inline-flex">- <DropdownMenuTrigger asChild>- <Button- aria-haspopup="menu"- aria-label={ctrl.heartbeatActions}- className="size-6 rounded-md text-muted-foreground/70 hover:text-foreground/90"- disabled={isBusy}- onClick={event => {- // Radix opens pointer interactions from pointerdown. Keyboard,- // assistive-tech, and programmatic clicks have no pointer sequence.- if (event.detail === 0) {- setMenuOpen(true)- }- }}- onKeyDown={e => {- if (e.key === 'F10' && e.shiftKey) {- e.preventDefault()- setMenuOpen(true)- }- }}- size="icon-xs"- type="button"- variant="ghost"- >- <Codicon name="ellipsis" size="0.8rem" />- </Button>- </DropdownMenuTrigger>- </span>- </Tip>+ <span className="inline-flex">+ <DropdownMenuTrigger asChild>+ <Button+ aria-haspopup="menu"+ aria-label={ctrl.heartbeatActions}+ className="size-6 rounded-md text-muted-foreground/70 hover:text-foreground/90"+ disabled={isBusy}+ onClick={event => {+ // Radix opens pointer interactions from pointerdown. Keyboard,+ // assistive-tech, and programmatic clicks have no pointer sequence.+ if (event.detail === 0) {+ setMenuOpen(true)+ }+ }}+ onKeyDown={e => {+ if (e.key === 'F10' && e.shiftKey) {+ e.preventDefault()+ setMenuOpen(true)+ }+ }}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Codicon name="ellipsis" size="0.8rem" />+ </Button>+ </DropdownMenuTrigger>+ </span><DropdownMenuContent align="end" className="w-44">{renderMenuItems(false)}</DropdownMenuContent>diff --git a/apps/desktop/src/app/chat/composer/status-stack/session-control-loop.tsx b/apps/desktop/src/app/chat/composer/status-stack/session-control-loop.tsxindex 5c3bf49d4fb..f17a4d183ca 100644--- a/apps/desktop/src/app/chat/composer/status-stack/session-control-loop.tsx+++ b/apps/desktop/src/app/chat/composer/status-stack/session-control-loop.tsx@@ -19,7 +19,6 @@ import {DropdownMenuSeparator,DropdownMenuTrigger} from '@/components/ui/dropdown-menu'-import { Tip } from '@/components/ui/tooltip'import { useI18n } from '@/i18n'import {runSessionControlAction,@@ -157,36 +156,34 @@ export const SessionControlLoopSection = memo(function SessionControlLoopSection<StatusSectionaccessory={<DropdownMenu onOpenChange={setMenuOpen} open={menuOpen}>- <Tip label={ctrl.loopActions}>- <span className="inline-flex">- <DropdownMenuTrigger asChild>- <Button- aria-haspopup="menu"- aria-label={ctrl.loopActions}- className="size-6 rounded-md text-muted-foreground/70 hover:text-foreground/90"- disabled={isBusy}- onClick={event => {- // Radix opens pointer interactions from pointerdown. Keyboard,- // assistive-tech, and programmatic clicks have no pointer sequence.- if (event.detail === 0) {- setMenuOpen(true)- }- }}- onKeyDown={e => {- if (e.key === 'F10' && e.shiftKey) {- e.preventDefault()- setMenuOpen(true)- }- }}- size="icon-xs"- type="button"- variant="ghost"- >- <Codicon name="ellipsis" size="0.8rem" />- </Button>- </DropdownMenuTrigger>- </span>- </Tip>+ <span className="inline-flex">+ <DropdownMenuTrigger asChild>+ <Button+ aria-haspopup="menu"+ aria-label={ctrl.loopActions}+ className="size-6 rounded-md text-muted-foreground/70 hover:text-foreground/90"+ disabled={isBusy}+ onClick={event => {+ // Radix opens pointer interactions from pointerdown. Keyboard,+ // assistive-tech, and programmatic clicks have no pointer sequence.+ if (event.detail === 0) {+ setMenuOpen(true)+ }+ }}+ onKeyDown={e => {+ if (e.key === 'F10' && e.shiftKey) {+ e.preventDefault()+ setMenuOpen(true)+ }+ }}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Codicon name="ellipsis" size="0.8rem" />+ </Button>+ </DropdownMenuTrigger>+ </span><DropdownMenuContent align="end" className="w-40">{renderMenuItems(false)}</DropdownMenuContent>diff --git a/apps/desktop/src/app/chat/composer/trigger-popover.tsx b/apps/desktop/src/app/chat/composer/trigger-popover.tsxindex 4e575d3e3aa..400e8916984 100644--- a/apps/desktop/src/app/chat/composer/trigger-popover.tsx+++ b/apps/desktop/src/app/chat/composer/trigger-popover.tsx@@ -201,10 +201,9 @@ export function ComposerTriggerPopover({<Fragment key={item.id}>{showHeader && <div className={cn(GROUP_HEADER_CLASS, isFirstHeader ? 'pt-0.5' : 'pt-2')}>{group}</div>}<Tip- className="max-w-[calc(100vw-2rem)] wrap-anywhere"- collisionPadding={16}delayDuration={400}label={kind === '/' ? description : undefined}+ placement="row"sideOffset={4}><buttondiff --git a/apps/desktop/src/app/chat/composer/voice-menu.tsx b/apps/desktop/src/app/chat/composer/voice-menu.tsxindex 74cdbc245f2..ec50f94e81e 100644--- a/apps/desktop/src/app/chat/composer/voice-menu.tsx+++ b/apps/desktop/src/app/chat/composer/voice-menu.tsx@@ -79,7 +79,7 @@ export function VoiceMenu({return (<DropdownMenu>- <Tip label={wake.notice && !dictating ? `${triggerLabel} — ${wake.notice}` : triggerLabel} side="left">+ <Tip label={wake.notice && !dictating ? `${triggerLabel} — ${wake.notice}` : triggerLabel} placement="control"><DropdownMenuTrigger asChild><Buttonaria-label={triggerLabel}diff --git a/apps/desktop/src/app/chat/sidebar/session-row.tsx b/apps/desktop/src/app/chat/sidebar/session-row.tsxindex cfe2076fb24..803f1239636 100644--- a/apps/desktop/src/app/chat/sidebar/session-row.tsx+++ b/apps/desktop/src/app/chat/sidebar/session-row.tsx@@ -493,7 +493,7 @@ function SidebarSessionRowImpl({{leadNode}{handoffBadge}<span className="min-w-0 flex-1 self-center">- <OverflowTip label={title}>+ <OverflowTip label={title} placement="row"><SidebarRowLabelclassName="hover-marquee block font-normal group-hover:text-foreground group-data-[working=true]:text-foreground/90"onPointerEnter={armMarquee}@@ -553,7 +553,7 @@ function SidebarSessionRowImpl({{/* Title + preview: ONE grouped cell with its own tightinternal gap — it does not inherit the card's rhythm. */}<div className="flex min-w-0 flex-col gap-[0.15rem]">- <OverflowTip label={title}>+ <OverflowTip label={title} placement="row"><SidebarRowLabelclassName={cn('hover-marquee text-[0.8125rem] font-medium text-(--ui-text-primary) group-data-[working=true]:text-foreground',diff --git a/apps/desktop/src/app/right-sidebar/terminal/rail.test.tsx b/apps/desktop/src/app/right-sidebar/terminal/rail.test.tsxindex aa451f6b7fa..a62b5bb85f6 100644--- a/apps/desktop/src/app/right-sidebar/terminal/rail.test.tsx+++ b/apps/desktop/src/app/right-sidebar/terminal/rail.test.tsx@@ -19,21 +19,21 @@ describe('TerminalRail', () => {$activeTerminalId.set(null)})- it('keeps a hotkey label in inline flow inside the portaled tooltip decoration', async () => {+ it('keeps the terminal hotkey in a portaled bubble facing into the window', async () => {const view = render(<TerminalRail />)fireEvent.pointerMove(screen.getByRole('tab', { name: '1. PowerShell' }), { pointerType: 'mouse' })await screen.findByRole('tooltip')- const content = document.querySelector<HTMLElement>('[data-slot="tooltip-content"]')- const decoration = content?.firstElementChild+ const content = view.baseElement.querySelector<HTMLElement>('[data-slot="tooltip-content"]')+ const label = content?.querySelector('[data-slot="tooltip-label"]')expect(content).not.toBeNull()expect(view.container.contains(content)).toBe(false)- // No flex box under the decoration: its per-line background only wraps- // inline flow, so a flex label would hang its overflow dark-on-dark.- expect(decoration?.querySelector('.flex, .inline-flex')).toBeNull()- expect(decoration?.textContent).toContain('PowerShell')+ expect(content?.classList.contains('tooltip-bubble')).toBe(true)+ expect(content?.getAttribute('data-side')).toBe('left')+ expect(label?.textContent).toContain('PowerShell')+ expect(content?.querySelector('[data-slot="tooltip-arrow"]')).not.toBeNull()})it('⌘-click closes the tab; a plain click selects it', () => {diff --git a/apps/desktop/src/app/right-sidebar/terminal/rail.tsx b/apps/desktop/src/app/right-sidebar/terminal/rail.tsxindex 61bb51a40c9..39ae4f9cab1 100644--- a/apps/desktop/src/app/right-sidebar/terminal/rail.tsx+++ b/apps/desktop/src/app/right-sidebar/terminal/rail.tsx@@ -69,7 +69,7 @@ export function TerminalRail() {<li className="flex w-full justify-center"><Tiplabel={<TipHintLabel hint={newHint && formatCombo(newHint)} text={t.rightSidebar.terminalNew} />}- side="left"+ placement="right-rail"><buttonaria-label={t.rightSidebar.terminalNew}@@ -84,7 +84,7 @@ export function TerminalRail() {</ul><div className="flex shrink-0 flex-col items-center pb-1.5">- <Tip label={t.rightSidebar.terminalHide} side="left">+ <Tip label={t.rightSidebar.terminalHide} placement="right-rail"><buttonaria-label={t.rightSidebar.terminalHide}className={cn(RAIL_ACTION, 'opacity-0 transition-opacity group-hover/rail:opacity-100')}@@ -121,7 +121,7 @@ function TerminalRailItem({ active, canCloseOthers, index, term, toggleHint }: TclassName="absolute inset-y-0.5 right-0 w-0.5 rounded-l-sm bg-(--ui-stroke-primary)"/>)}- <Tip label={<TipHintLabel hint={toggleHint && formatCombo(toggleHint)} text={label} />} side="left">+ <Tip label={<TipHintLabel hint={toggleHint && formatCombo(toggleHint)} text={label} />} placement="right-rail"><buttonaria-label={label}aria-selected={active}diff --git a/apps/desktop/src/app/shell/titlebar-controls.tsx b/apps/desktop/src/app/shell/titlebar-controls.tsxindex 203cef0923c..df19bd0607b 100644--- a/apps/desktop/src/app/shell/titlebar-controls.tsx+++ b/apps/desktop/src/app/shell/titlebar-controls.tsx@@ -349,7 +349,7 @@ function TitlebarToolButton({ navigate, tool }: { navigate: ReturnType<typeof usif (tool.href) {return (- <Tip label={tooltipLabel}>+ <Tip label={tooltipLabel} placement="toolbar"><Button asChild className={className} size="icon-titlebar" variant="ghost"><aaria-label={tool.label}@@ -367,7 +367,7 @@ function TitlebarToolButton({ navigate, tool }: { navigate: ReturnType<typeof us}return (- <Tip label={tooltipLabel}>+ <Tip label={tooltipLabel} placement="toolbar"><Buttonaria-label={tool.label}aria-pressed={tool.active ?? undefined}diff --git a/apps/desktop/src/components/assistant-ui/tool/fallback.tsx b/apps/desktop/src/components/assistant-ui/tool/fallback.tsxindex a7bf9aa083c..e50270cff72 100644--- a/apps/desktop/src/components/assistant-ui/tool/fallback.tsx+++ b/apps/desktop/src/components/assistant-ui/tool/fallback.tsx@@ -39,7 +39,6 @@ import { FadeText } from '@/components/ui/fade-text'import { FileTypeIcon } from '@/components/ui/file-type-icon'import { GlyphSpinner } from '@/components/ui/glyph-spinner'import { ToolIcon } from '@/components/ui/tool-icon'-import { Tip } from '@/components/ui/tooltip'import { useI18n } from '@/i18n'import { connectorCalls, mcpTargets } from '@/lib/connector-tools'import { PrettyLink, LinkifiedText as SharedLinkifiedText, urlSlugTitleLabel } from '@/lib/external-link'@@ -517,26 +516,24 @@ function ToolEntry({ part }: ToolEntryProps) {// It goes in the in-flow `action` slot (not `trailing`) so it can't overlap// the disclosure caret's hit-target — see the comment above `trailing`.const dismissAction = canDismiss ? (- <Tip label={statusCopy.dismiss}>- <Button- aria-label={statusCopy.dismiss}- className={cn(- 'size-5 rounded-md text-(--ui-text-tertiary) transition-opacity hover:text-(--ui-text-primary) hover:opacity-100',- open- ? 'opacity-80'- : 'opacity-0 group-hover/disclosure-row:opacity-80 group-focus-within/disclosure-row:opacity-80'- )}- onClick={event => {- event.stopPropagation()- dismissToolRow(disclosureId)- }}- size="icon-xs"- type="button"- variant="ghost"- >- <Codicon name="close" size="0.75rem" />- </Button>- </Tip>+ <Button+ aria-label={statusCopy.dismiss}+ className={cn(+ 'size-5 rounded-md text-(--ui-text-tertiary) transition-opacity hover:text-(--ui-text-primary) hover:opacity-100',+ open+ ? 'opacity-80'+ : 'opacity-0 group-hover/disclosure-row:opacity-80 group-focus-within/disclosure-row:opacity-80'+ )}+ onClick={event => {+ event.stopPropagation()+ dismissToolRow(disclosureId)+ }}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Codicon name="close" size="0.75rem" />+ </Button>) : undefinedif (dismissed) {diff --git a/apps/desktop/src/components/assistant-ui/tooltip-icon-button.tsx b/apps/desktop/src/components/assistant-ui/tooltip-icon-button.tsxindex cd4da8aad72..7cf897d41a7 100644--- a/apps/desktop/src/components/assistant-ui/tooltip-icon-button.tsx+++ b/apps/desktop/src/components/assistant-ui/tooltip-icon-button.tsx@@ -12,7 +12,7 @@ export interface TooltipIconButtonProps extends ComponentPropsWithRef<typeof But}export const TooltipIconButton = forwardRef<HTMLButtonElement, TooltipIconButtonProps>(- ({ children, tooltip, side = 'bottom', className, ...rest }, ref) => {+ ({ children, tooltip, side, className, ...rest }, ref) => {return (<Tip label={tooltip} side={side}><Buttondiff --git a/apps/desktop/src/components/billing-banner.tsx b/apps/desktop/src/components/billing-banner.tsxindex 73f7107decb..27aaaf0e038 100644--- a/apps/desktop/src/components/billing-banner.tsx+++ b/apps/desktop/src/components/billing-banner.tsx@@ -3,7 +3,6 @@ import { useStore } from '@nanostores/react'import { StatusRow } from '@/components/chat/status-row'import { Button } from '@/components/ui/button'import { Codicon } from '@/components/ui/codicon'-import { Tip } from '@/components/ui/tooltip'import { useI18n } from '@/i18n'import { $billingBlock, billingCtaLabel, clearBillingBlock, runBillingRecovery } from '@/store/billing-block'@@ -47,18 +46,16 @@ export function BillingBanner({ sessionId }: { sessionId: null | string }) {>{billingCtaLabel(block, copy)}</Button>- <Tip label={copy.dismiss}>- <Button- aria-label={copy.dismiss}- className="size-4 rounded-md text-muted-foreground/60 hover:text-foreground/90"- onClick={() => clearBillingBlock(sessionId)}- size="icon-xs"- type="button"- variant="ghost"- >- <Codicon name="close" size="0.75rem" />- </Button>- </Tip>+ <Button+ aria-label={copy.dismiss}+ className="size-4 rounded-md text-muted-foreground/60 hover:text-foreground/90"+ onClick={() => clearBillingBlock(sessionId)}+ size="icon-xs"+ type="button"+ variant="ghost"+ >+ <Codicon name="close" size="0.75rem" />+ </Button></>}trailingVisiblediff --git a/apps/desktop/src/components/ui/fan-menu.tsx b/apps/desktop/src/components/ui/fan-menu.tsxindex 895b798670d..ac2ea23b895 100644--- a/apps/desktop/src/components/ui/fan-menu.tsx+++ b/apps/desktop/src/components/ui/fan-menu.tsx@@ -37,8 +37,7 @@ export interface FanMenuProps {/** Gap between discs, px. Discs are the hub's measured size; the step* between them is that size plus this. */gap?: number- /** Where each disc's tooltip sits. Defaults to left, so tips hang off the- * side of the fan rather than covering the next disc up. */+ /** Override the outward-facing tooltip side derived from the fan geometry. */tipAnchor?: 'top' | 'left' | 'right' | 'bottom'/** The hairline caret on the hub that says "there is more". */hint?: boolean@@ -117,6 +116,18 @@ export function fanOffsets(direction: FanDirection, count: number, step: number)const sameRect = (a: DOMRect | null, b: DOMRect) =>a !== null && a.left === b.left && a.top === b.top && a.width === b.width && a.height === b.height+function fanTipSide(direction: FanDirection, offset: Point): NonNullable<FanMenuProps['tipAnchor']> {+ if (direction === 'vertical') {+ return 'left'+ }++ if (direction === 'horizontal' || Math.abs(offset.x) < Math.abs(offset.y)) {+ return 'top'+ }++ return offset.x < 0 ? 'left' : 'right'+}+/*** One control that fans its siblings out on hover — a column, a row centred* on it, or an arc. The hub stays in the flow where the consumer puts it; the@@ -126,15 +137,7 @@ const sameRect = (a: DOMRect | null, b: DOMRect) =>* Hover, geometry and open/close timing live here. The consumer only* re-renders when its own items change; pointer traffic never reaches it.*/-export function FanMenu({- direction = 'vertical',- gap = 4,- hint = true,- hub,- items,- label,- tipAnchor = 'left'-}: FanMenuProps) {+export function FanMenu({ direction = 'vertical', gap = 4, hint = true, hub, items, label, tipAnchor }: FanMenuProps) {const anchorRef = useRef<HTMLSpanElement | null>(null)const [rect, setRect] = useState<DOMRect | null>(null)const [open, setOpen] = useState(false)@@ -247,7 +250,7 @@ export function FanMenu({onPointerLeave={hideSoon}ref={anchorRef}>- <Tip label={hub.label} side={tipAnchor}>+ <Tip label={hub.label} side={tipAnchor ?? (open && direction === 'vertical' ? 'left' : 'top')}><Buttonaria-expanded={open}aria-haspopup="true"@@ -333,7 +336,7 @@ const FanCluster = memo(function FanCluster({open: booleanrect: DOMRectstep: number- tipAnchor: NonNullable<FanMenuProps['tipAnchor']>+ tipAnchor: FanMenuProps['tipAnchor']}) {const rootRef = useRef<HTMLDivElement | null>(null)// Mount folded, then unfold on the next style pass so the translate@@ -371,7 +374,7 @@ const FanCluster = memo(function FanCluster({style={{ height: rect.height, left: rect.left, top: rect.top, width: rect.width }}>{items.map((item, index) => (- <Tip key={item.id} label={item.label} side={tipAnchor}>+ <Tip key={item.id} label={item.label} side={tipAnchor ?? fanTipSide(direction, offsets[index])}><Buttonaria-label={item.label}aria-pressed={item.active}diff --git a/apps/desktop/src/components/ui/pane-tab.tsx b/apps/desktop/src/components/ui/pane-tab.tsxindex b23816e5ec2..d5f65d087b5 100644--- a/apps/desktop/src/components/ui/pane-tab.tsx+++ b/apps/desktop/src/components/ui/pane-tab.tsx@@ -305,7 +305,7 @@ export interface PaneStripTool {*/export function PaneStripGlyph({ active, disabled, icon, label, onSelect }: Omit<PaneStripTool, 'id'>) {return (- <Tip label={label}>+ <Tip label={label} placement="toolbar"><Buttonaria-label={label}aria-pressed={active ?? undefined}diff --git a/apps/desktop/src/components/ui/sidebar.tsx b/apps/desktop/src/components/ui/sidebar.tsxindex 805fee49e97..049b5b53d91 100644--- a/apps/desktop/src/components/ui/sidebar.tsx+++ b/apps/desktop/src/components/ui/sidebar.tsx@@ -501,7 +501,7 @@ function SidebarMenuButton({return (<Tooltip><TooltipTrigger asChild>{button}</TooltipTrigger>- <TooltipContent align="center" hidden={state !== 'collapsed' || isMobile} side="right" {...tooltip} />+ <TooltipContent hidden={state !== 'collapsed' || isMobile} placement="left-rail" {...tooltip} /></Tooltip>)}