Skip to content

The agent that grows with you

fix(desktop): strip Close-X tips and statusbar tip lectures

Brooklyn Nicholson9b5c15727c49
diff --git a/apps/desktop/src/app/master-detail.tsx b/apps/desktop/src/app/master-detail.tsx
index a8fe634d07d..097aa9fb338 100644
--- a/apps/desktop/src/app/master-detail.tsx
+++ b/apps/desktop/src/app/master-detail.tsx
@@ -210,11 +210,9 @@ export function DetailPane({
</Button>
</Tip>
{onClose && (
- <Tip label={t.common.close}>
- <Button aria-label={t.common.close} className={ICON_BUTTON} onClick={onClose} size="icon" variant="ghost">
- <Codicon name="close" size="0.8125rem" />
- </Button>
- </Tip>
+ <Button aria-label={t.common.close} className={ICON_BUTTON} onClick={onClose} size="icon" variant="ghost">
+ <Codicon name="close" size="0.8125rem" />
+ </Button>
)}
</div>
</header>
diff --git a/apps/desktop/src/app/overlays/overlay-view.tsx b/apps/desktop/src/app/overlays/overlay-view.tsx
index f9c544ee59d..812a07a122a 100644
--- a/apps/desktop/src/app/overlays/overlay-view.tsx
+++ b/apps/desktop/src/app/overlays/overlay-view.tsx
@@ -3,7 +3,6 @@ import { type CSSProperties, type ReactNode, useEffect } from 'react'
import { TITLEBAR_HEIGHT } from '@/app/shell/titlebar'
import { Button } from '@/components/ui/button'
import { Codicon } from '@/components/ui/codicon'
-import { Tip } from '@/components/ui/tooltip'
import { translateNow } from '@/i18n'
import { ESCAPE_PRIORITY, isTopEscapeLayer, pushEscapeLayer } from '@/lib/escape-layers'
import { triggerHaptic } from '@/lib/haptics'
@@ -107,17 +106,15 @@ export function OverlayView({
</div>
)}
- <Tip label={closeLabel}>
- <Button
- aria-label={closeLabel}
- className="pointer-events-auto absolute right-3 top-[calc(0.1875rem+var(--titlebar-height)/2)] -translate-y-1/2 text-(--ui-text-tertiary) hover:bg-(--chrome-action-hover) hover:text-foreground [-webkit-app-region:no-drag]"
- onClick={closeOverlay}
- size="icon-titlebar"
- variant="ghost"
- >
- <Codicon name="close" size="1rem" />
- </Button>
- </Tip>
+ <Button
+ aria-label={closeLabel}
+ className="pointer-events-auto absolute right-3 top-[calc(0.1875rem+var(--titlebar-height)/2)] -translate-y-1/2 text-(--ui-text-tertiary) hover:bg-(--chrome-action-hover) hover:text-foreground [-webkit-app-region:no-drag]"
+ onClick={closeOverlay}
+ size="icon-titlebar"
+ variant="ghost"
+ >
+ <Codicon name="close" size="1rem" />
+ </Button>
</div>
{/* No top padding here: the split-layout columns own their own
diff --git a/apps/desktop/src/app/right-sidebar/review/index.tsx b/apps/desktop/src/app/right-sidebar/review/index.tsx
index 9fc203c8167..df0d02f3324 100644
--- a/apps/desktop/src/app/right-sidebar/review/index.tsx
+++ b/apps/desktop/src/app/right-sidebar/review/index.tsx
@@ -135,11 +135,9 @@ export function ReviewPane() {
<Codicon name="refresh" size="0.8125rem" spinning={loading} />
</Button>
</Tip>
- <Tip label={c.close}>
- <Button aria-label={c.close} className={ACTION_BTN} onClick={closeReview} size="icon-xs" variant="ghost">
- <Codicon name="close" size="0.8125rem" />
- </Button>
- </Tip>
+ <Button aria-label={c.close} className={ACTION_BTN} onClick={closeReview} size="icon-xs" variant="ghost">
+ <Codicon name="close" size="0.8125rem" />
+ </Button>
</RightSidebarSectionHeader>
)}
@@ -184,17 +182,15 @@ export function ReviewPane() {
<Codicon name={selectedFile.staged ? 'remove' : 'add'} size="0.8rem" />
</Button>
</Tip>
- <Tip label={c.close}>
- <Button
- aria-label={c.close}
- className={ACTION_BTN}
- onClick={clearReviewSelection}
- size="icon-xs"
- variant="ghost"
- >
- <Codicon name="close" size="0.8rem" />
- </Button>
- </Tip>
+ <Button
+ aria-label={c.close}
+ className={ACTION_BTN}
+ onClick={clearReviewSelection}
+ size="icon-xs"
+ variant="ghost"
+ >
+ <Codicon name="close" size="0.8rem" />
+ </Button>
</div>
<div className="min-h-0 flex-1 overflow-auto px-1 pb-1">
{diffLoading ? (
diff --git a/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx b/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx
index 684433314e9..fb2aac6d2da 100644
--- a/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx
+++ b/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx
@@ -340,11 +340,7 @@ export function useStatusbarItems({
: cloud
? copy.connectionCloud(connection.remoteHost)
: copy.connectionRemote(connection.remoteHost),
- title: ssh
- ? copy.connectionSshTooltip(connection.remoteHost)
- : cloud
- ? copy.connectionCloudTooltip(connection.remoteHost)
- : copy.connectionRemoteTooltip(connection.remoteHost),
+ // Label already names the host — no "click to manage" tip lecture.
to: `${SETTINGS_ROUTE}?tab=gateway`
}
}, [connection?.mode, connection?.remoteHost, connection?.remoteKind, copy])
@@ -378,7 +374,8 @@ export function useStatusbarItems({
label: copy.gateway,
menuClassName: 'w-72',
menuContent: gatewayMenuContent,
- title: inferenceStatus?.reason || copy.gatewayTitle,
+ // Tip only when there's a real status reason — not "gateway status" restating the label.
+ title: inferenceStatus?.reason || undefined,
toggleLabel: copy.gateway,
variant: 'menu'
},
@@ -446,7 +443,6 @@ export function useStatusbarItems({
icon: <Clock className="size-3" />,
id: 'cron',
label: copy.cron,
- title: copy.openCron,
to: CRON_ROUTE,
toggleLabel: copy.cron,
variant: 'action'
@@ -455,7 +451,6 @@ export function useStatusbarItems({
icon: <Globe className="size-3" />,
id: 'webhooks',
label: copy.webhooks,
- title: copy.openWebhooks,
to: WEBHOOKS_ROUTE,
toggleLabel: copy.webhooks,
variant: 'action'
@@ -492,7 +487,6 @@ export function useStatusbarItems({
icon: <Loader2 className="size-3 animate-spin" />,
id: 'running-timer',
label: copy.turnRunning,
- title: copy.currentTurnElapsed,
toggleLabel: copy.toggleRunningTimer,
variant: 'text'
},
@@ -511,7 +505,6 @@ export function useStatusbarItems({
sessionId={activeSessionId}
/>
),
- title: copy.openContextUsage,
toggleLabel: copy.toggleContextUsage,
variant: 'menu'
},
@@ -520,7 +513,6 @@ export function useStatusbarItems({
hidden: !sessionStartedAt,
id: 'session-timer',
label: copy.session,
- title: copy.runtimeSessionElapsed,
toggleLabel: copy.toggleSessionTimer,
variant: 'text'
},
diff --git a/apps/desktop/src/app/shell/titlebar-controls.tsx b/apps/desktop/src/app/shell/titlebar-controls.tsx
index 21abd7596f1..debbaf32487 100644
--- a/apps/desktop/src/app/shell/titlebar-controls.tsx
+++ b/apps/desktop/src/app/shell/titlebar-controls.tsx
@@ -142,8 +142,7 @@ export function TitlebarControls({ leftTools = [], tools = [], onOpenSettings }:
onSelect: () => {
triggerHaptic('tap')
togglePanesFlipped()
- },
- title: t.titlebar.swapSidebarSidesTitle
+ }
},
...leftTools
]
diff --git a/apps/desktop/src/components/find-bar.tsx b/apps/desktop/src/components/find-bar.tsx
index 6e99e581ae5..d597ee82a45 100644
--- a/apps/desktop/src/components/find-bar.tsx
+++ b/apps/desktop/src/components/find-bar.tsx
@@ -207,18 +207,16 @@ export function FindBar() {
</button>
</Tip>
- <Tip label={t.common.close}>
- <button
- aria-label={t.common.close}
- className="flex h-5 w-5 items-center justify-center rounded text-(--ui-text-secondary) hover:bg-(--ui-control-hover-background)"
- onClick={closeFindBar}
- type="button"
- >
- <svg height="10" viewBox="0 0 12 12" width="10">
- <path d="M1 1l10 10M11 1L1 11" stroke="currentColor" strokeWidth="1.5" />
- </svg>
- </button>
- </Tip>
+ <button
+ aria-label={t.common.close}
+ className="flex h-5 w-5 items-center justify-center rounded text-(--ui-text-secondary) hover:bg-(--ui-control-hover-background)"
+ onClick={closeFindBar}
+ type="button"
+ >
+ <svg height="10" viewBox="0 0 12 12" width="10">
+ <path d="M1 1l10 10M11 1L1 11" stroke="currentColor" strokeWidth="1.5" />
+ </svg>
+ </button>
</div>
)
}
diff --git a/apps/desktop/src/components/ui/dialog.tsx b/apps/desktop/src/components/ui/dialog.tsx
index 7c69bdad8c4..61b6ee63498 100644
--- a/apps/desktop/src/components/ui/dialog.tsx
+++ b/apps/desktop/src/components/ui/dialog.tsx
@@ -3,7 +3,6 @@ import * as React from 'react'
import { Button } from '@/components/ui/button'
import { DialogPortalContainerContext } from '@/components/ui/dialog-portal-context'
-import { Tip } from '@/components/ui/tooltip'
import { useI18n } from '@/i18n'
import { X } from '@/lib/icons'
import { cn } from '@/lib/utils'
@@ -99,25 +98,19 @@ function DialogContent({
// an input) is what most dialogs want. Dialogs with no input should pass
// `onOpenAutoFocus={preventCloseButtonAutoFocus}` explicitly instead.
- // `Tip` wraps `DialogPrimitive.Close asChild` (not the other way around) so
- // Radix's `Slot` can forward `Close`'s `onClick` straight through to the
- // `Button`. When `Tip` was the innermost wrapper, `onClick` was absorbed by
- // `Tip`'s passthrough `...props` and forwarded to `TooltipContent` instead of
- // the button, so clicking the close button silently did nothing.
+ // No tip on the X — the glyph is the label. Keep aria-label / sr-only for a11y.
const closeButton = showCloseButton ? (
- <Tip label={t.common.close}>
- <DialogPrimitive.Close asChild data-slot="dialog-close-button">
- <Button
- aria-label={t.common.close}
- className="absolute right-2.5 top-2.5 z-20 text-(--ui-text-tertiary) hover:bg-(--chrome-action-hover) hover:text-foreground"
- size="icon-xs"
- variant="ghost"
- >
- <X className="size-4" />
- <span className="sr-only">{t.common.close}</span>
- </Button>
- </DialogPrimitive.Close>
- </Tip>
+ <DialogPrimitive.Close asChild data-slot="dialog-close-button">
+ <Button
+ aria-label={t.common.close}
+ className="absolute right-2.5 top-2.5 z-20 text-(--ui-text-tertiary) hover:bg-(--chrome-action-hover) hover:text-foreground"
+ size="icon-xs"
+ variant="ghost"
+ >
+ <X className="size-4" />
+ <span className="sr-only">{t.common.close}</span>
+ </Button>
+ </DialogPrimitive.Close>
) : null
// With a banner, the border can't live on the scroll/clip box (it would draw a