Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(ui): unify canvas chrome spacing, icons and tooltips
Bas Miliusfd4b940ee3cf
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsxindex ca4761b7d..f6970ebaa 100644--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@ -91,9 +91,13 @@ import { Dock } from '../components/Dock'import { TabBar } from '../components/TabBar'import { ContextMenu, type MenuItem } from '../components/ContextMenu'import { CommandPalette, type Command } from '../components/CommandPalette'+import { Tooltip } from '../components/Tooltip'import {- IconCollapse,IconBranch,+ IconCanvasView,+ IconClose,+ IconCollapse,+ IconDino,IconDuplicate,IconEditor,IconExplorer,@@ -101,22 +105,23 @@ import {IconGear,IconGrid,IconGroup,- IconDino,IconJump,IconKanban,- IconCanvasView,IconLock,IconMarkdown,- IconReload,- IconSmiley,- IconPower,+ IconMinus,IconNote,IconPhone,+ IconPlus,+ IconPower,IconProject,+ IconReload,IconRemote,IconSave,+ IconSearch,IconSelectAll,IconSessions,+ IconSmiley,IconSwitch,IconTerminal,IconTrash,@@ -946,9 +951,9 @@ export function Canvas() {return () => clearTimeout(t)}, [notice])const [zoomPct, setZoomPct] = useState(100)- // Canvas lock (bottom-left Controls): freezes the viewport against GESTURES — pan (drag ++ // Canvas lock (bottom-left Controls): freezes the viewport against GESTURES: pan (drag +// scroll), zoom (pinch / Cmd+wheel / double-click), node dragging and edge connecting.- // Deliberate button clicks (Controls +/−/fit, dock zoom, ⌘K fit) still work, matching React+ // Deliberate button clicks (Controls +/-/fit, dock zoom, ⌘K fit) still work, matching React// Flow's own lock convention. Transient by design: a lock that survives restart reads as// "the app is frozen" to whoever opens it next.const [canvasLocked, setCanvasLocked] = useState(false)@@ -13011,7 +13016,7 @@ export function Canvas() {title="Dismiss"onClick={() => setMigrationNote(null)}>- ✕+ <IconClose /></button></div>)}@@ -13026,7 +13031,7 @@ export function Canvas() {title="Dismiss"onClick={() => setSyncNote(null)}>- ✕+ <IconClose /></button></div>)}@@ -13041,7 +13046,7 @@ export function Canvas() {title="Dismiss"onClick={() => setCopyError(null)}>- ✕+ <IconClose /></button></div>)}@@ -13060,7 +13065,7 @@ export function Canvas() {title="Dismiss"onClick={() => setNotice(null)}>- ✕+ <IconClose /></button></div>)}@@ -13202,7 +13207,7 @@ export function Canvas() {title="Command palette"onClick={() => setPaletteOpen(true)}>- <span className="cluster-search__icon">⌕</span>+ <IconSearch />{paletteChip && <span className="kbd">{paletteChip}</span>}</button><button title={commandTooltip('Explorer', 'panel.explorer')} onClick={() => showExplorer('toggle')}>@@ -13368,14 +13373,37 @@ export function Canvas() {mounted in the experimental 'shared' renderer mode; nothing about it exists for thedefault modes. */}{glyphLayerActive && <SharedGlyphLayer />}- <Controls showInteractive={false} position="bottom-left" onFitView={fitAll}>- <ControlButton- className={`canvas-lock-btn${canvasLocked ? ' locked' : ''}`}- title={canvasLocked ? 'Unlock view (pan/zoom)' : 'Lock view (pan/zoom) — nodes stay movable'}- onClick={() => setCanvasLocked((v) => !v)}+ {/* The library's own zoom/fit glyphs are swapped for the shared icon set so this cluster+ matches every other floating control; the actions behind them are unchanged, and+ zoom stays instant here (the dock's buttons are the animated pair). */}+ <Controls showZoom={false} showFitView={false} showInteractive={false} position="bottom-left">+ <Tooltip label="Zoom in" placement="top">+ <ControlButton aria-label="Zoom in" onClick={() => zoomIn()}>+ <IconPlus />+ </ControlButton>+ </Tooltip>+ <Tooltip label="Zoom out" placement="top">+ <ControlButton aria-label="Zoom out" onClick={() => zoomOut()}>+ <IconMinus />+ </ControlButton>+ </Tooltip>+ <Tooltip label="Fit view" placement="top">+ <ControlButton aria-label="Fit view" onClick={fitAll}>+ <IconFit />+ </ControlButton>+ </Tooltip>+ <Tooltip+ label={canvasLocked ? 'Unlock view (pan/zoom)' : 'Lock view (pan/zoom); nodes stay movable'}+ placement="top">- {canvasLocked ? <IconLock /> : <IconUnlock />}- </ControlButton>+ <ControlButton+ className={`canvas-lock-btn${canvasLocked ? ' locked' : ''}`}+ aria-label={canvasLocked ? 'Unlock view' : 'Lock view'}+ onClick={() => setCanvasLocked((v) => !v)}+ >+ {canvasLocked ? <IconLock /> : <IconUnlock />}+ </ControlButton>+ </Tooltip></Controls>{/* Peer cursors live INSIDE <ReactFlow>: PresenceLayer uses ViewportPortal +useReactFlow, which throw outside the provider — and cursors are flow coordinates. */}diff --git a/src/renderer/canvas/canvas-image-import.ts b/src/renderer/canvas/canvas-image-import.tsindex 1a25131ee..7337bbfc8 100644--- a/src/renderer/canvas/canvas-image-import.ts+++ b/src/renderer/canvas/canvas-image-import.ts@@ -5,7 +5,7 @@ export function isCanvasImageDropTarget(target: EventTarget | null, wrap: Elemenelement &&wrap.contains(element) &&element.closest('.react-flow__pane') &&- !element.closest('.react-flow__node, .react-flow__controls, .react-flow__minimap')+ !element.closest('.react-flow__node, .react-flow__minimap'))}diff --git a/src/renderer/components/AnnouncementBanner.tsx b/src/renderer/components/AnnouncementBanner.tsxindex 9c72c0cb5..9e6563091 100644--- a/src/renderer/components/AnnouncementBanner.tsx+++ b/src/renderer/components/AnnouncementBanner.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from 'react'+import { IconClose } from './icons'import type { Announcement } from '@shared/types'// Polls the remote announcements feed (via the main process) and shows the newest@@ -72,7 +73,7 @@ export function AnnouncementBanner(): JSX.Element | null {</button>)}<button className="announce-banner__close" title="Dismiss" onClick={dismiss}>- ✕+ <IconClose /></button></div>)diff --git a/src/renderer/components/DictationOverlay.tsx b/src/renderer/components/DictationOverlay.tsxindex cf5dd198a..de3852a07 100644--- a/src/renderer/components/DictationOverlay.tsx+++ b/src/renderer/components/DictationOverlay.tsx@@ -13,6 +13,7 @@//// No target selected at press time never records at all — see the warning-pill render branch.import { useCallback, useEffect, useRef, useState } from 'react'+import { IconClose } from './icons'import { createPortal } from 'react-dom'import { equalizerBars } from '../lib/dictation-equalizer'import { PcmCapture } from '../lib/pcm-capture'@@ -285,7 +286,7 @@ export function DictationOverlay({ target, stopSignal, onClose, onOpenLicense }:</button>)}<button type="button" className="dictation__close" title="Dismiss" onClick={handleClose}>- ×+ <IconClose /></button></div>)@@ -299,7 +300,7 @@ export function DictationOverlay({ target, stopSignal, onClose, onOpenLicense }:: 'Select a terminal node first.'}</span><button type="button" className="dictation__close" title="Dismiss" onClick={handleClose}>- ×+ <IconClose /></button></div>,document.bodydiff --git a/src/renderer/components/Dock.tsx b/src/renderer/components/Dock.tsxindex 918773727..c3d91e755 100644--- a/src/renderer/components/Dock.tsx+++ b/src/renderer/components/Dock.tsx@@ -10,6 +10,7 @@ import { useProjects } from '../state/projects'import { accountsForProject, sshAccountsHint } from '../state/workspace'import { CONTENT_ADD_ITEMS, contentAddItemsToDockRows, type AddHandlers } from '../lib/addMenuSpec'import { ZOOM_PRESETS, activeZoomPreset } from '../lib/zoomPresets'+import { Tooltip } from './Tooltip'const isMac = /Mac/i.test(navigator.platform || navigator.userAgent)@@ -309,54 +310,62 @@ export function Dock({</div>)}- <button- className={`dock-btn dock-add${menuOpen ? ' active' : ''}`}- title="Add node"- onClick={() => {- setZoomMenuOpen(false)- setMenuOpen((v) => !v)- }}- >- <PlusIcon />- </button>+ <Tooltip label="Add node" placement="top">+ <button+ className={`dock-btn dock-add${menuOpen ? ' active' : ''}`}+ aria-label="Add node"+ onClick={() => {+ setZoomMenuOpen(false)+ setMenuOpen((v) => !v)+ }}+ >+ <PlusIcon />+ </button>+ </Tooltip><span className="dock-sep" />- <button className="dock-btn" title={commandTooltip('Undo', 'canvas.undo')} disabled={!canUndo} onClick={onUndo}>- <UndoIcon />- </button>- <button className="dock-btn" title={commandTooltip('Redo', 'canvas.redo')} disabled={!canRedo} onClick={onRedo}>- <RedoIcon />- </button>- <button- className="dock-btn"- title={commandTooltip('Go back', 'canvas.goBack')}- disabled={!canGoBack}- onClick={onGoBack}- >- <ArrowLeftIcon />- </button>- <button- className="dock-btn"- title={commandTooltip('Go forward', 'canvas.goForward')}- disabled={!canGoForward}- onClick={onGoForward}- >- <ArrowRightIcon />- </button>+ <Tooltip label={commandTooltip('Undo', 'canvas.undo')} placement="top">+ <button className="dock-btn" aria-label="Undo" disabled={!canUndo} onClick={onUndo}>+ <UndoIcon />+ </button>+ </Tooltip>+ <Tooltip label={commandTooltip('Redo', 'canvas.redo')} placement="top">+ <button className="dock-btn" aria-label="Redo" disabled={!canRedo} onClick={onRedo}>+ <RedoIcon />+ </button>+ </Tooltip>+ <Tooltip label={commandTooltip('Go back', 'canvas.goBack')} placement="top">+ <button className="dock-btn" aria-label="Go back" disabled={!canGoBack} onClick={onGoBack}>+ <ArrowLeftIcon />+ </button>+ </Tooltip>+ <Tooltip label={commandTooltip('Go forward', 'canvas.goForward')} placement="top">+ <button+ className="dock-btn"+ aria-label="Go forward"+ disabled={!canGoForward}+ onClick={onGoForward}+ >+ <ArrowRightIcon />+ </button>+ </Tooltip><span className="dock-sep" />- <button className="dock-btn" title="Save" onClick={onSave}>- <SaveIcon />- <span className={`dock-dirty${dirty ? ' dirty' : ''}`} />- </button>- <button className="dock-btn" title="Fit view" onClick={onFitView}>- <FrameIcon />- </button>- <button- className={`dock-btn${dictateActive ? ' active' : ''}`}- title={+ <Tooltip label={dirty ? 'Save (unsaved changes)' : 'Save'} placement="top">+ <button className="dock-btn" aria-label="Save" onClick={onSave}>+ <SaveIcon />+ <span className={`dock-dirty${dirty ? ' dirty' : ''}`} />+ </button>+ </Tooltip>+ <Tooltip label="Fit view" placement="top">+ <button className="dock-btn" aria-label="Fit view" onClick={onFitView}>+ <FrameIcon />+ </button>+ </Tooltip>+ <Tooltip+ label={dictationOff? 'Dictation off — choose a model in Settings → Speech': // The user unbound the shortcut: the mic button still dictates, so the tooltip@@ -367,16 +376,24 @@ export function Dock({? `Dictate (hold ${formatShortcut(dictationShortcut, isMac)})`: `Dictate (${formatShortcut(dictationShortcut, isMac)})`}- onClick={onDictate}+ placement="top">- <MicIcon />- </button>+ <button+ className={`dock-btn${dictateActive ? ' active' : ''}`}+ aria-label="Dictate"+ onClick={onDictate}+ >+ <MicIcon />+ </button>+ </Tooltip><span className="dock-sep" />- <button className="dock-btn dock-zoom-btn" title="Zoom out" onClick={onZoomOut}>- <MinusIcon />- </button>+ <Tooltip label="Zoom out" placement="top">+ <button className="dock-btn dock-zoom-btn" aria-label="Zoom out" onClick={onZoomOut}>+ <MinusIcon />+ </button>+ </Tooltip><div className="dock-zoom-wrap">{zoomMenuOpen && (<div className="dock-menu dock-zoom-menu">@@ -399,22 +416,26 @@ export function Dock({</button></div>)}- <button- className={`dock-zoom${zoomMenuOpen ? ' active' : ''}`}- title="Zoom presets"- aria-haspopup="menu"- aria-expanded={zoomMenuOpen}- onClick={() => {- setMenuOpen(false)- setZoomMenuOpen((v) => !v)- }}- >- {zoomPct}%- </button>+ <Tooltip label="Zoom presets" placement="top">+ <button+ className={`dock-zoom${zoomMenuOpen ? ' active' : ''}`}+ aria-label="Zoom presets"+ aria-haspopup="menu"+ aria-expanded={zoomMenuOpen}+ onClick={() => {+ setMenuOpen(false)+ setZoomMenuOpen((v) => !v)+ }}+ >+ {zoomPct}%+ </button>+ </Tooltip></div>- <button className="dock-btn dock-zoom-btn" title="Zoom in" onClick={onZoomIn}>- <PlusSmallIcon />- </button>+ <Tooltip label="Zoom in" placement="top">+ <button className="dock-btn dock-zoom-btn" aria-label="Zoom in" onClick={onZoomIn}>+ <PlusSmallIcon />+ </button>+ </Tooltip></div></>)diff --git a/src/renderer/components/ExplorerPanel.tsx b/src/renderer/components/ExplorerPanel.tsxindex 26530213f..32bb4911f 100644--- a/src/renderer/components/ExplorerPanel.tsx+++ b/src/renderer/components/ExplorerPanel.tsx@@ -11,7 +11,7 @@ import { ancestorDirs, createTargetDir, newEntryPath, parentDir } from '../lib/eimport { canRevealLocally, downloadRoute, triggerBrowserDownload } from '../lib/download'import { explorerOverlayClickCloses } from '../lib/explorerPin'import { isBrowserRuntime } from '../bridge/runtime'-import { IconPin } from './icons'+import { IconClose, IconPin, IconReload } from './icons'export interface ExplorerPanelProps {onClose: () => void@@ -473,7 +473,7 @@ export function ExplorerPanel({<h2>{project?.name || 'Explorer'}</h2><div className="ex-head-actions"><button type="button" title="Refresh" aria-label="Refresh" onClick={() => setVersion((v) => v + 1)}>- ↻+ <IconReload /></button>{onTogglePin && (<button@@ -488,7 +488,7 @@ export function ExplorerPanel({</button>)}<button type="button" className="drawer__close" title="Close" aria-label="Close" onClick={onClose}>- ×+ <IconClose /></button></div></div>@@ -547,11 +547,11 @@ export function ExplorerPanel({</button>)}<button- className="ex-dls__act"+ className="ex-dls__act ex-dls__dismiss"aria-label="Dismiss"onClick={() => setDownloads((list) => list.filter((x) => x.id !== d.id))}>- ×+ <IconClose /></button></div>))}diff --git a/src/renderer/components/FindBar.tsx b/src/renderer/components/FindBar.tsxindex f51259e0a..138a8288b 100644--- a/src/renderer/components/FindBar.tsx+++ b/src/renderer/components/FindBar.tsx@@ -1,4 +1,5 @@import { useEffect, useRef } from 'react'+import { IconClose } from './icons'/** Identical shape to SearchSnippet in useTerminalSearch.ts (imported by the consumer). */export interface FindBarSnippet {@@ -82,7 +83,7 @@ export function FindBar({aria-label="Close search"onClick={onClose}>- ✕+ <IconClose /></button></div>{current && (diff --git a/src/renderer/components/LogPanel.tsx b/src/renderer/components/LogPanel.tsxindex d96f81d94..c85c24c75 100644--- a/src/renderer/components/LogPanel.tsx+++ b/src/renderer/components/LogPanel.tsx@@ -1,4 +1,5 @@import { useEffect, useMemo, useRef, useState } from 'react'+import { IconClose } from './icons'import { createPortal } from 'react-dom'import type { LogRecord } from '@shared/types'@@ -128,7 +129,7 @@ export function LogPanel({ onClose }: LogPanelProps) {Clear</button><button className="drawer__close" onClick={onClose}>- ×+ <IconClose /></button></div><divdiff --git a/src/renderer/components/PtyPressureBanner.tsx b/src/renderer/components/PtyPressureBanner.tsxindex 88e395de7..b07b52ed4 100644--- a/src/renderer/components/PtyPressureBanner.tsx+++ b/src/renderer/components/PtyPressureBanner.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from 'react'+import { IconClose } from './icons'import type { PtyPressure } from '@shared/types'import { isMacPlatform } from '../../shared/platform-utils'@@ -129,7 +130,7 @@ export function PtyPressureBanner({title="Dismiss"onClick={() => setDismissed({ level: reading.level, seq: state!.seq })}>- ✕+ <IconClose /></button></div>)diff --git a/src/renderer/components/RemoteAccessDialog.tsx b/src/renderer/components/RemoteAccessDialog.tsxindex 234fa7438..ec5c26d74 100644--- a/src/renderer/components/RemoteAccessDialog.tsx+++ b/src/renderer/components/RemoteAccessDialog.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from 'react'+import { IconClose } from './icons'import { createPortal } from 'react-dom'import { useDialogStack } from './dialog-stack'import { useEntitlement } from '../state/entitlement'@@ -91,7 +92,7 @@ export function RemoteAccessDialog({ onClose }: { onClose: () => void }): React.<div className="remote-dialog__head"><h3>Remote access</h3><button className="remote-dialog__x" onClick={onClose} title="Close">- ×+ <IconClose /></button></div><p className="remote-dialog__desc">diff --git a/src/renderer/components/SessionMemoryPanel.tsx b/src/renderer/components/SessionMemoryPanel.tsxindex 7b26ec66b..d79237065 100644--- a/src/renderer/components/SessionMemoryPanel.tsx+++ b/src/renderer/components/SessionMemoryPanel.tsx@@ -10,6 +10,7 @@// 3. Every row is rendered. A cap would have to announce itself.import { useCallback, useEffect, useMemo, useState } from 'react'+import { IconReload } from './icons'import type { AgentState } from '@shared/agents/normalize'import { formatBytes } from '@shared/fsLimits'import { useAgentStatus } from '../state/agentStatus'@@ -262,7 +263,7 @@ export function SessionMemoryPanel({disabled={loading}onClick={sweep}>- ⟳+ <IconReload /></button>)}</div>diff --git a/src/renderer/components/ShortcutsPanel.tsx b/src/renderer/components/ShortcutsPanel.tsxindex 0fab4ead6..2f1c57875 100644--- a/src/renderer/components/ShortcutsPanel.tsx+++ b/src/renderer/components/ShortcutsPanel.tsx@@ -44,6 +44,7 @@ import { isMacPlatform, keyLabel } from '@shared/platform-utils'import { isBrowserRuntime } from '../bridge/runtime'import { effectiveBindings } from '../lib/keybindingOverrides'import { useSettings } from '../state/settings'+import { IconClose } from './icons'export interface ShortcutsPanelProps {onClose: () => void@@ -222,7 +223,7 @@ export function ShortcutsPanel({ onClose, onCustomize }: ShortcutsPanelProps) {<div className="shortcuts__head"><h2>Keyboard shortcuts</h2><button className="drawer__close" onClick={onClose}>- ×+ <IconClose /></button></div><div className="shortcuts__body">diff --git a/src/renderer/components/TabBar.tsx b/src/renderer/components/TabBar.tsxindex a9ec49ed2..3b8b29045 100644--- a/src/renderer/components/TabBar.tsx+++ b/src/renderer/components/TabBar.tsx@@ -12,7 +12,7 @@ import { sessionCount, sessionForProject, useProjectSession } from '../session/simport { tabClickAction } from '../session/relay-tab'import { useMenuFlip } from '../ui/useMenuFlip'import { commandTooltip } from '../lib/keybindingOverrides'-import { IconCanvasView, IconKanban } from './icons'+import { IconCanvasView, IconChevronDown, IconKanban, IconPlus } from './icons'import { ProjectGlyph } from './ProjectGlyph'import {ALL_PERMISSION_MODES,@@ -410,7 +410,7 @@ export function TabBar({else openMenu(p.id, e.currentTarget)}}>- ⌄+ <IconChevronDown /></button>)}</div>@@ -424,7 +424,7 @@ export function TabBar({aria-label="New project"onClick={onOpenWelcome}>- ++ <IconPlus /></button></div></div>diff --git a/src/renderer/components/Tooltip.tsx b/src/renderer/components/Tooltip.tsxindex fe3aace83..ae2b9de6f 100644--- a/src/renderer/components/Tooltip.tsx+++ b/src/renderer/components/Tooltip.tsx@@ -5,10 +5,13 @@ interface TooltipProps {label: stringchildren: ReactNodedelay?: number+ /** Which side of the trigger the bubble opens on. Chrome that hugs the bottom of the window (the+ * dock) must open upward: below it, the bubble lands off-screen. */+ placement?: 'top' | 'bottom'}/** A custom styled tooltip (portal, fixed-positioned) shown on hover after a short delay. */-export function Tooltip({ label, children, delay = 350 }: TooltipProps) {+export function Tooltip({ label, children, delay = 350, placement = 'bottom' }: TooltipProps) {const [pos, setPos] = useState<{ x: number; y: number } | null>(null)const timer = useRef<ReturnType<typeof setTimeout> | null>(null)@@ -17,7 +20,10 @@ export function Tooltip({ label, children, delay = 350 }: TooltipProps) {if (timer.current) clearTimeout(timer.current)timer.current = setTimeout(() => {const r = el.getBoundingClientRect()- setPos({ x: r.left + r.width / 2, y: r.bottom + 6 })+ setPos({+ x: r.left + r.width / 2,+ y: placement === 'top' ? r.top - 6 : r.bottom + 6+ })}, delay)}@@ -31,7 +37,10 @@ export function Tooltip({ label, children, delay = 350 }: TooltipProps) {{children}{pos &&createPortal(- <div className="tooltip" style={{ left: pos.x, top: pos.y }}>+ <div+ className={`tooltip${placement === 'top' ? ' tooltip--top' : ''}`}+ style={{ left: pos.x, top: pos.y }}+ >{label}</div>,document.bodydiff --git a/src/renderer/components/UpdateCard.tsx b/src/renderer/components/UpdateCard.tsxindex 6d29dd28b..15a763f9c 100644--- a/src/renderer/components/UpdateCard.tsx+++ b/src/renderer/components/UpdateCard.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react'+import { IconClose } from './icons'import type { UpdateProgress } from '@shared/types'// The full updater lifecycle as one status union, driving a fixed bottom-right card.@@ -162,7 +163,7 @@ export function UpdateCard(): JSX.Element | null {)}{canDismiss && (<button className="update-card__icon" title="Dismiss" onClick={dismiss}>- ✕+ <IconClose /></button>)}</div>diff --git a/src/renderer/components/UsageIndicator.tsx b/src/renderer/components/UsageIndicator.tsxindex f1b7a2516..7599233e9 100644--- a/src/renderer/components/UsageIndicator.tsx+++ b/src/renderer/components/UsageIndicator.tsx@@ -1,4 +1,5 @@import { useEffect, useMemo, useRef, useState } from 'react'+import { IconReload } from './icons'import type { ClaudeUsage, ProviderUsage, RemoteAccountUsage, UsageLimit } from '@shared/types'import { AGENT_CONFIG } from '@shared/agents/config'import { useSettings } from '../state/settings'@@ -611,7 +612,7 @@ export function UsageIndicator({disabled={refreshing}title="Refresh usage">- ⟳+ <IconReload /></button></div>)diff --git a/src/renderer/components/WelcomeScreen.tsx b/src/renderer/components/WelcomeScreen.tsxindex 3d86dce37..8971fdd35 100644--- a/src/renderer/components/WelcomeScreen.tsx+++ b/src/renderer/components/WelcomeScreen.tsx@@ -1,4 +1,5 @@import { useEffect, useMemo, useState } from 'react'+import { IconClose } from './icons'import type { ProjectIcon } from '@shared/project-icon'import { filterClosedProjects } from '../lib/closedHistory'import { ProjectGlyph } from './ProjectGlyph'@@ -83,15 +84,20 @@ export function WelcomeScreen({position: 'absolute',top: 16,right: 20,+ display: 'inline-flex',+ alignItems: 'center',+ justifyContent: 'center',+ width: 26,+ height: 26,+ padding: 0,background: 'transparent',border: 'none',color: 'rgba(235,235,245,0.6)',- fontSize: 26,lineHeight: 1,cursor: 'pointer'}}>- ×+ <IconClose /></button>)}<div className="welcome__brand">@@ -219,7 +225,7 @@ export function WelcomeScreen({onDeleteClosed(p.id)}}>- ×+ <IconClose /></button>)}</div>diff --git a/src/renderer/components/icons.tsx b/src/renderer/components/icons.tsxindex 99e17a575..3643cfe14 100644--- a/src/renderer/components/icons.tsx+++ b/src/renderer/components/icons.tsx@@ -64,6 +64,12 @@ export const IconPlus = () => (</svg>)+export const IconMinus = () => (+ <svg {...S}>+ <path d="M5 12h14" />+ </svg>+)+export const IconSelectAll = () => (<svg {...S}><path d="M4 8V6a2 2 0 0 1 2-2h2M16 4h2a2 2 0 0 1 2 2v2M20 16v2a2 2 0 0 1-2 2h-2M8 20H6a2 2 0 0 1-2-2v-2" />@@ -273,10 +279,10 @@ export const IconMic = () => (export const IconSessions = () => (<svg {...S}>- <rect x="3" y="4" width="18" height="5" rx="1.5" />- <rect x="3" y="11" width="18" height="5" rx="1.5" />- <line x1="6" y1="6.5" x2="6" y2="6.5" />- <line x1="6" y1="13.5" x2="6" y2="13.5" />+ <rect x="3" y="4" width="18" height="6" rx="2" />+ <rect x="3" y="14" width="18" height="6" rx="2" />+ <circle cx="6.5" cy="7" r="0.9" fill="currentColor" stroke="none" />+ <circle cx="6.5" cy="17" r="0.9" fill="currentColor" stroke="none" /></svg>)@@ -294,23 +300,19 @@ export const IconCircleCheck = () => (</svg>)-/* Filled padlocks (like the bell below): they live in the React Flow controls, whose- default icons are filled glyphs capped at 12px — a stroked lock collapses there. */+/* Stroked padlocks: the canvas lock moved out of the React Flow controls (whose filled 12px+ glyph set is why these used to be filled) into the dock, where every icon is an outline. */export const IconLock = () => (- <svg width={16} height={16} viewBox="0 0 24 24" fill="currentColor" stroke="none">- <path- fillRule="evenodd"- d="M6 10V7a6 6 0 0 1 12 0v3h.5A2.5 2.5 0 0 1 21 12.5v7A2.5 2.5 0 0 1 18.5 22h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H6zm2.4 0h7.2V7a3.6 3.6 0 0 0-7.2 0v3zM12 14.2a1.8 1.8 0 0 0-.9 3.36V19a.9.9 0 0 0 1.8 0v-1.44a1.8 1.8 0 0 0-.9-3.36z"- />+ <svg {...S}>+ <rect x="4.5" y="10.5" width="15" height="10.5" rx="2.5" />+ <path d="M8 10.5V7a4 4 0 0 1 8 0v3.5" /></svg>)export const IconUnlock = () => (- <svg width={16} height={16} viewBox="0 0 24 24" fill="currentColor" stroke="none">- <path- fillRule="evenodd"- d="M6 10V7a6 6 0 0 1 11.7-1.9l-2.3.8A3.6 3.6 0 0 0 8.4 7v3h10.1A2.5 2.5 0 0 1 21 12.5v7A2.5 2.5 0 0 1 18.5 22h-13A2.5 2.5 0 0 1 3 19.5v-7A2.5 2.5 0 0 1 5.5 10H6zM12 14.2a1.8 1.8 0 0 0-.9 3.36V19a.9.9 0 0 0 1.8 0v-1.44a1.8 1.8 0 0 0-.9-3.36z"- />+ <svg {...S}>+ <rect x="4.5" y="10.5" width="15" height="10.5" rx="2.5" />+ <path d="M8 10.5V7a4 4 0 0 1 7.7-1.5" /></svg>)@@ -340,6 +342,24 @@ export const IconKanban = () => (</svg>)+export const IconChevronDown = () => (+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round">+ <path d="M4 6.5L8 10.5l4-4" />+ </svg>+)++export const IconChevronRight = () => (+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round">+ <path d="M6.5 4l4 4-4 4" />+ </svg>+)++export const IconClose = () => (+ <svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round">+ <path d="M4 4l8 8M12 4l-8 8" />+ </svg>+)+export const IconCanvasView = () => (<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round"><rect x="1.5" y="1.5" width="6" height="5" rx="1" />diff --git a/src/renderer/nodes/BrowserNode.tsx b/src/renderer/nodes/BrowserNode.tsxindex 4757a1de2..42adbd3f8 100644--- a/src/renderer/nodes/BrowserNode.tsx+++ b/src/renderer/nodes/BrowserNode.tsx@@ -1,4 +1,5 @@import { Handle, NodeResizer, Position, useReactFlow, type NodeProps } from '@xyflow/react'+import { IconClose } from '../components/icons'import { NODE_MIN_SIZES } from '../lib/nodeSizing'import type { CanvasNode } from '../state/workspace'import { BrowserSurface } from './BrowserSurface'@@ -50,7 +51,7 @@ export default function BrowserNode({ id, data, selected }: NodeProps<CanvasNode<BrowserDrivingIndicator nodeId={id} /><span className="term-node__spacer" /><button className="term-node__close" title="Close" onClick={() => deleteElements({ nodes: [{ id }] })}>- ×+ <IconClose /></button></div>diff --git a/src/renderer/nodes/DiffNode.tsx b/src/renderer/nodes/DiffNode.tsxindex 996a803c4..2765c8e51 100644--- a/src/renderer/nodes/DiffNode.tsx+++ b/src/renderer/nodes/DiffNode.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react'+import { IconClose } from '../components/icons'import { NodeResizer, useReactFlow, type NodeProps } from '@xyflow/react'import { NODE_MIN_SIZES } from '../lib/nodeSizing'import { monaco } from '../editor/monaco-setup'@@ -151,7 +152,7 @@ export function DiffNode({ id, data, selected }: NodeProps<CanvasNode>) {title="Close"onClick={() => deleteElements({ nodes: [{ id }] })}>- ×+ <IconClose /></button></div>diff --git a/src/renderer/nodes/DinoNode.tsx b/src/renderer/nodes/DinoNode.tsxindex 351918b8b..279b7a8ea 100644--- a/src/renderer/nodes/DinoNode.tsx+++ b/src/renderer/nodes/DinoNode.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react'+import { IconClose } from '../components/icons'import { NodeResizer, useReactFlow, type NodeProps } from '@xyflow/react'import { NODE_MIN_SIZES } from '../lib/nodeSizing'import { useShallow } from 'zustand/react/shallow'@@ -117,7 +118,7 @@ export function DinoNode({ id, data, selected }: NodeProps<CanvasNode>) {title="Close"onClick={() => deleteElements({ nodes: [{ id }] })}>- ×+ <IconClose /></button></div>diff --git a/src/renderer/nodes/EditorNode.tsx b/src/renderer/nodes/EditorNode.tsxindex 295a95683..26abe4449 100644--- a/src/renderer/nodes/EditorNode.tsx+++ b/src/renderer/nodes/EditorNode.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react'+import { IconClose } from '../components/icons'import { Handle, NodeResizer, Position, useReactFlow, type NodeProps } from '@xyflow/react'import { NODE_MIN_SIZES } from '../lib/nodeSizing'import { monaco } from '../editor/monaco-setup'@@ -304,7 +305,7 @@ export function EditorNode({ id, data, selected }: NodeProps<CanvasNode>) {title="Close"onClick={() => deleteElements({ nodes: [{ id }] })}>- ×+ <IconClose /></button></div>diff --git a/src/renderer/nodes/GroupNode.tsx b/src/renderer/nodes/GroupNode.tsxindex eab94eb44..e8fd183fd 100644--- a/src/renderer/nodes/GroupNode.tsx+++ b/src/renderer/nodes/GroupNode.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react'+import { IconClose } from '../components/icons'import { NodeResizer, useReactFlow, type NodeProps } from '@xyflow/react'import { NODE_MIN_SIZES } from '../lib/nodeSizing'import { NODE_COLORS, ungroupNodes, type CanvasNode } from '../state/workspace'@@ -291,7 +292,7 @@ export function GroupNode({ id, data, selected }: NodeProps<CanvasNode>) {title="Remove worktree"onClick={() => worktreeActionHandler?.(id, 'remove')}>- ✕+ <IconClose /></button>)}</div>@@ -307,7 +308,7 @@ export function GroupNode({ id, data, selected }: NodeProps<CanvasNode>) {title="Remove group (keeps nodes)"onClick={ungroup}>- ×+ <IconClose /></button></div></div>diff --git a/src/renderer/nodes/LoopNode.tsx b/src/renderer/nodes/LoopNode.tsxindex 34c75d2e1..f7fba314c 100644--- a/src/renderer/nodes/LoopNode.tsx+++ b/src/renderer/nodes/LoopNode.tsx@@ -1,4 +1,5 @@import { useEffect, useRef } from 'react'+import { IconChevronDown, IconChevronRight, IconClose } from '../components/icons'import { Handle, NodeResizer, Position, type NodeProps } from '@xyflow/react'import { NODE_MIN_SIZES } from '../lib/nodeSizing'import type { CanvasNode } from '../state/workspace'@@ -64,7 +65,7 @@ export function LoopNode({ id, data, selected }: NodeProps<CanvasNode>) {toggle()}}>- {expanded ? '▾' : '▸'}+ {expanded ? <IconChevronDown /> : <IconChevronRight />}</button><span className="loop-node__dot" /><span className="loop-node__type">{label}</span>@@ -80,7 +81,7 @@ export function LoopNode({ id, data, selected }: NodeProps<CanvasNode>) {title="Dismiss card (does not remove the job)"onClick={dismiss}>- ×+ <IconClose /></button></div>{(task || schedule) && !expanded && <div className="loop-node__task">{task || schedule}</div>}diff --git a/src/renderer/nodes/StickyNode.tsx b/src/renderer/nodes/StickyNode.tsxindex 276af6f9c..01cf3c7e1 100644--- a/src/renderer/nodes/StickyNode.tsx+++ b/src/renderer/nodes/StickyNode.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from 'react'+import { IconChevronDown, IconChevronRight, IconClose } from '../components/icons'import { Handle, NodeResizer, Position, useReactFlow, type NodeProps } from '@xyflow/react'import { NODE_MIN_SIZES } from '../lib/nodeSizing'import { COLLAPSED_HEIGHT, NODE_COLORS, type CanvasNode } from '../state/workspace'@@ -89,7 +90,7 @@ export function StickyNode({ id, data, selected }: NodeProps<CanvasNode>) {<div className="sticky-node__header" style={{ background: `${data.color}33` }}><button className="term-node__collapse" title={collapsed ? 'Expand' : 'Collapse'} onClick={toggleCollapse}>- {collapsed ? '▸' : '▾'}+ {collapsed ? <IconChevronRight /> : <IconChevronDown />}</button><buttonclassName="term-node__color"@@ -154,7 +155,7 @@ export function StickyNode({ id, data, selected }: NodeProps<CanvasNode>) {title="Close"onClick={() => deleteElements({ nodes: [{ id }] })}>- ×+ <IconClose /></button></div>diff --git a/src/renderer/nodes/SubagentNode.tsx b/src/renderer/nodes/SubagentNode.tsxindex d0903e309..19359640d 100644--- a/src/renderer/nodes/SubagentNode.tsx+++ b/src/renderer/nodes/SubagentNode.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react'+import { IconChevronDown, IconChevronRight } from '../components/icons'import { Handle, NodeResizer, Position, type NodeProps } from '@xyflow/react'import { NODE_MIN_SIZES } from '../lib/nodeSizing'import type { CanvasNode } from '../state/workspace'@@ -71,7 +72,7 @@ export function SubagentNode({ id, data, selected }: NodeProps<CanvasNode>) {toggle()}}>- {expanded ? '▾' : '▸'}+ {expanded ? <IconChevronDown /> : <IconChevronRight />}</button><span className="subagent-node__dot" /><span className="subagent-node__type">{(data.subagentType as string) || 'subagent'}</span>diff --git a/src/renderer/nodes/TerminalNode.tsx b/src/renderer/nodes/TerminalNode.tsxindex 472693909..3f29ef84c 100644--- a/src/renderer/nodes/TerminalNode.tsx+++ b/src/renderer/nodes/TerminalNode.tsx@@ -135,7 +135,18 @@ import {import { shouldAutoWake, shouldColdResume } from '../terminal/hibernation-policy'import { WakeInputBuffer } from '../terminal/wake-input-buffer'import { FindBar } from '../components/FindBar'-import { IconSearch, IconChat, IconMic, IconReload, IconEye, IconEyeOff, IconGrid } from '../components/icons'+import {+ IconSearch,+ IconChat,+ IconMic,+ IconReload,+ IconEye,+ IconEyeOff,+ IconGrid,+ IconChevronDown,+ IconChevronRight,+ IconClose+} from '../components/icons'import { NodeLabels } from '../components/kanban/NodeLabels'import { Tooltip } from '../components/Tooltip'import { useTerminalSearch } from '../terminal/useTerminalSearch'@@ -4854,7 +4865,7 @@ export function TerminalNode({<div className="term-node__header"><button className="term-node__collapse" title={collapsed ? 'Expand' : 'Collapse'} onClick={toggleCollapse}>- {collapsed ? '▸' : '▾'}+ {collapsed ? <IconChevronRight /> : <IconChevronDown />}</button><buttonclassName="term-node__color"@@ -5268,7 +5279,7 @@ export function TerminalNode({deleteElements({ nodes: [{ id }] })}}>- ×+ <IconClose /></button></div>@@ -5390,7 +5401,7 @@ export function TerminalNode({title="Dismiss"aria-label="Dismiss">- ×+ <IconClose /></button></div>)}diff --git a/src/renderer/nodes/VideoNode.tsx b/src/renderer/nodes/VideoNode.tsxindex 3988a3172..222c66d4b 100644--- a/src/renderer/nodes/VideoNode.tsx+++ b/src/renderer/nodes/VideoNode.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from 'react'+import { IconClose } from '../components/icons'import { Handle, NodeResizer, Position, useReactFlow, type NodeProps } from '@xyflow/react'import { NODE_MIN_SIZES } from '../lib/nodeSizing'import type { CanvasNode } from '../state/workspace'@@ -90,7 +91,7 @@ export default function VideoNode({ id, data, selected }: NodeProps<CanvasNode>)title="Close"onClick={() => deleteElements({ nodes: [{ id }] })}>- ×+ <IconClose /></button></div>diff --git a/src/renderer/nodes/WebNode.tsx b/src/renderer/nodes/WebNode.tsxindex b6d9776df..4889dbfb5 100644--- a/src/renderer/nodes/WebNode.tsx+++ b/src/renderer/nodes/WebNode.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react'+import { IconClose } from '../components/icons'import { Handle, NodeResizer, Position, useReactFlow, type NodeProps } from '@xyflow/react'import { NODE_MIN_SIZES } from '../lib/nodeSizing'import type { CanvasNode } from '../state/workspace'@@ -207,7 +208,7 @@ export default function WebNode({ id, data, selected }: NodeProps<CanvasNode>) {title="Close"onClick={() => deleteElements({ nodes: [{ id }] })}>- ×+ <IconClose /></button></div>diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex fd76e58ea..cc16d94b9 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -63,8 +63,15 @@without touching 54 rules. Scrims are excluded: darkening IS a scrim's job. */--shadow-k: 1;+ /* One distance between every floating overlay and the edge it hugs (the dock's, historically):+ the dock, the pill cluster, the minimap, the sidebars and the top-right cluster each used to+ carry their own 14 to 22px, which read as a ragged margin. Top-anchored chrome adds the tab bar's+ 44px on top of it. */+ --float-gap: 22px;+ --tabbar-h: 44px;+/* Canvas chrome that lives on React Flow props rather than in a rule. */- --canvas-dot: #4a4a4a;+ --canvas-dot: #303030;--minimap-mask: rgba(10, 12, 18, 0.6);--git-graph-ref: var(--accent);--git-graph-remote-ref: #bf5af2;@@ -163,7 +170,7 @@/* Dots must read as a grid, not as noise: the dark-mode grey is far too heavy on a pale field,and a neutral one would be the only cold thing on screen. */- --canvas-dot: #d8cdba;+ --canvas-dot: #eae3d6;--minimap-mask: rgba(251, 248, 243, 0.6);}@@ -196,7 +203,7 @@ body,display: flex;align-items: center;gap: 14px;- height: 44px;+ height: var(--tabbar-h);padding: 0 12px;background: var(--panel);border-bottom: 1px solid var(--border);@@ -404,11 +411,13 @@ body,}.tab__caret {+ display: inline-flex;+ align-items: center;+ justify-content: center;background: transparent;border: none;color: currentColor;cursor: pointer;- font-size: 12px;line-height: 1;padding: 2px 2px;border-radius: 4px;@@ -437,7 +446,6 @@ body,border: none;border-radius: 14px;color: var(--muted);- font-size: 17px;cursor: pointer;}@@ -547,14 +555,14 @@ body,.dock {position: absolute;- bottom: 22px;+ bottom: var(--float-gap);left: 50%;transform: translateX(-50%);z-index: 20;display: flex;align-items: center;gap: 4px;- padding: 7px 10px;+ padding: 7px;background: rgba(var(--menu-rgb), 0.92);backdrop-filter: blur(10px);border: 1px solid var(--border);@@ -590,12 +598,12 @@ body,color: #fff;}-.dock-add:hover {- background: var(--accent-hover);+.dock-btn.dock-add:hover:not(:disabled) {+ background: color-mix(in srgb, var(--accent) 85%, black);}-.dock-add.active {- background: #0060df;+.dock-btn.dock-add.active:not(:disabled) {+ background: color-mix(in srgb, var(--accent) 72%, black);color: #fff;}@@ -804,7 +812,7 @@ body,/* ---- Dictation overlay: bottom-center floating card above the Dock ---- */.dictation {position: fixed;- bottom: 88px;+ bottom: calc(var(--float-gap) + 52px + var(--float-gap));left: 50%;transform: translateX(-50%);z-index: 60; /* above the kanban board (25) and the card modal scrim (55) — the mic works there too */@@ -1337,7 +1345,7 @@ body,display: flex;align-items: center;gap: 8px;- padding: 6px 8px;+ padding: 6px;background: var(--panel-header);cursor: grab;user-select: none;@@ -1360,11 +1368,7 @@ body,color: var(--muted);cursor: pointer;line-height: 1;- padding: 2px 5px;border-radius: 4px;- flex-shrink: 0;- display: inline-flex;- align-items: center;}.term-node__maximize:hover {@@ -1834,6 +1838,11 @@ body,white-space: nowrap;}+/* Opens upward: the anchor y is the trigger's TOP edge, so the bubble is pulled fully above it. */+.tooltip--top {+ transform: translate(-50%, -100%);+}+.term-node__ai {background: transparent;border: none;@@ -1841,9 +1850,7 @@ body,cursor: pointer;font-size: 13px;line-height: 1;- padding: 2px 5px;border-radius: 4px;- flex-shrink: 0;}.term-node__ai:hover:not(:disabled) {@@ -1863,9 +1870,7 @@ body,cursor: pointer;font-size: 13px;line-height: 1;- padding: 2px 5px;border-radius: 4px;- flex-shrink: 0;}.term-node__move-worktree:hover {@@ -1879,11 +1884,7 @@ body,color: var(--muted);cursor: pointer;line-height: 1;- padding: 2px 5px;border-radius: 4px;- flex-shrink: 0;- display: inline-flex;- align-items: center;}.term-node__search:hover {@@ -1897,11 +1898,7 @@ body,color: var(--muted);cursor: pointer;line-height: 1;- padding: 2px 5px;border-radius: 4px;- flex-shrink: 0;- display: inline-flex;- align-items: center;}.term-node__refresh:hover {@@ -1915,11 +1912,7 @@ body,color: var(--muted);cursor: pointer;line-height: 1;- padding: 2px 5px;border-radius: 4px;- flex-shrink: 0;- display: inline-flex;- align-items: center;}.term-node__mic:hover {@@ -1933,11 +1926,7 @@ body,color: var(--muted);cursor: pointer;line-height: 1;- padding: 2px 5px;border-radius: 4px;- flex-shrink: 0;- display: inline-flex;- align-items: center;}.term-node__chat:hover {@@ -1945,6 +1934,30 @@ body,color: var(--accent-text);}+/* Every icon-only button in the terminal header shares ONE box: a 22px square with the icon+ centered on both axes. They used to differ per button (padding 2px 4/5/6px on a text baseline),+ which is what made the row read as misaligned. Buttons carrying TEXT (approve, queued-run, the+ status pills, the title) deliberately keep their own shape. */+.term-node__collapse,+.term-node__ai,+.term-node__chat,+.term-node__mic,+.term-node__search,+.term-node__refresh,+.term-node__maximize,+.term-node__close,+.term-node__move-worktree,+.term-node__hide-fanout,+.term-node__tidy-fanout {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 22px;+ height: 22px;+ padding: 0;+ flex-shrink: 0;+}+.term-node__hide-fanout,.term-node__tidy-fanout {background: transparent;@@ -2014,9 +2027,13 @@ body,cursor: pointer;font-size: 12px;line-height: 1;- padding: 2px 5px;border-radius: 4px;flex-shrink: 0;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 22px;+ height: 22px;}.term-node__find-btn:hover:not(:disabled) {@@ -2066,9 +2083,7 @@ body,border: none;color: var(--muted);cursor: pointer;- font-size: 16px;line-height: 1;- padding: 2px 6px;border-radius: 4px;}@@ -2417,15 +2432,18 @@ body,.term-node__stalecwd-restart:hover {background: rgba(255, 255, 255, 0.2);}-.term-node__stalecwd-dismiss {- padding: 0 4px;- border: none;+.term-node__stalecwd-dismiss { border: none;background: none;color: inherit;- font-size: 14px;line-height: 1;cursor: pointer;opacity: 0.7;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 18px;+ height: 18px;+ padding: 0;}.term-node__stalecwd-dismiss:hover {opacity: 1;@@ -2737,11 +2755,8 @@ body,border: none;color: var(--muted);cursor: pointer;- font-size: 11px;line-height: 1;- padding: 2px 4px;border-radius: 4px;- flex-shrink: 0;}.term-node__collapse:hover {@@ -2779,7 +2794,9 @@ body,cursor: pointer;font-size: 12px;line-height: 1;- padding: 0 1px;+ display: inline-flex;+ align-items: center;+ justify-content: center;}.node-tag button:hover {@@ -2870,9 +2887,14 @@ body,background: transparent;border: none;color: rgba(var(--tint-rgb), 0.55);- font-size: 18px;line-height: 1;cursor: pointer;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 24px;+ height: 24px;+ padding: 0;}.remote-dialog__x:hover {color: var(--text-strong);@@ -3395,7 +3417,7 @@ body,display: flex;align-items: center;gap: 8px;- padding: 5px 8px;+ padding: 5px;cursor: grab;user-select: none;}@@ -3495,8 +3517,8 @@ body,/* ---- Top-right controls cluster ---- */.controls-cluster {position: absolute;- top: 54px;- right: 14px;+ top: calc(var(--tabbar-h) + var(--float-gap));+ right: var(--float-gap);z-index: 26; /* above the kanban overlay (25) — the view toggle must stay reachable on the board */display: flex;align-items: center; /* center the presence facepile (26px) against the 34px toolbar buttons */@@ -3526,7 +3548,7 @@ body,/* Stack of notification strips (update + announcements), just below the tab bar. */.top-banners {position: absolute;- top: 46px;+ top: calc(var(--tabbar-h) + var(--float-gap));left: 50%;transform: translateX(-50%);z-index: 27; /* above the kanban overlay (25) and the cluster (26), below the tab bar (30) */@@ -3902,15 +3924,10 @@ body,/* Search button shows the ⌘K shortcut so its purpose is obvious */.cluster-search {width: auto !important;- gap: 7px;+ gap: 10px;padding: 0 10px;}-.cluster-search__icon {- font-size: 15px;- color: var(--muted);-}-.kbd {font-size: 11px;font-weight: 600;@@ -3966,7 +3983,7 @@ body,/* Pinned explorer: no scrim, clicks pass through to the canvas. The drawer is a floatingcard on the right — same shape as the sessions sidebar on the left — so the controls- cluster (top: 54px, right: 14px, 34px tall) stays reachable. z 26 sits with that cluster+ cluster (one --float-gap below the tab bar, 34px tall) stays reachable. z 26 sits with that clusterabove the kanban board (25) and below the tab bar (30) / dialogs (55+). pointer-eventson the overlay is load-bearing: a transparent overlay that still captures would freezethe canvas even with the click-to-close handler removed. */@@ -3978,9 +3995,10 @@ body,.drawer-overlay--pinned .drawer--pinned {pointer-events: auto;position: absolute;- top: 96px; /* 54 (cluster) + 34 (buttons) + 8 (gap) — must sit BELOW the cluster */- right: 14px;- bottom: 14px;+ /* Below the cluster: its own top + its 34px height + a gap. Same stack as .resume-card. */+ top: calc(var(--tabbar-h) + var(--float-gap) + 34px + 12px);+ right: var(--float-gap);+ bottom: var(--float-gap);height: auto;max-height: none;width: 320px;@@ -4007,9 +4025,14 @@ body,background: transparent;border: none;color: var(--muted);- font-size: 20px;line-height: 1;cursor: pointer;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 24px;+ height: 24px;+ padding: 0;}.drawer__close:hover {@@ -4589,6 +4612,12 @@ body,font-size: 16px;line-height: 1;cursor: pointer;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 22px;+ height: 22px;+ border-radius: 4px;}.ex-head-actions button:hover {@@ -4763,11 +4792,22 @@ body,background: transparent;border: none;color: var(--accent);- font-size: 12px;cursor: pointer;+ font-size: 12px;padding: 0 2px;}+/* The dismiss half of the download row: `.ex-dls__act` is shared with the text "Reveal" button,+ so the icon box lives here rather than on the shared class. */+.ex-dls__dismiss {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 18px;+ height: 18px;+ padding: 0;+}+/* The `+ .ex-dls__act` sibling is the dismiss ×: only the FIRST action pushes right. */.ex-dls__act + .ex-dls__act {margin-left: 0;@@ -5297,6 +5337,9 @@ body,color: var(--text);font-size: 14px;cursor: pointer;+ display: inline-flex;+ align-items: center;+ justify-content: center;}.dir-picker__up:hover:not(:disabled) {@@ -5959,9 +6002,13 @@ button.group-node__setup:disabled {border: 1px solid var(--border);color: var(--muted);border-radius: 7px;- font-size: 13px;- padding: 2px 8px;cursor: pointer;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 22px;+ height: 22px;+ padding: 0;}.group-node__wt-btn:hover {@@ -5993,9 +6040,13 @@ button.group-node__setup:disabled {border: 1px solid var(--border);color: var(--muted);border-radius: 7px;- font-size: 11px;- padding: 3px 8px;cursor: pointer;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ width: 22px;+ height: 22px;+ padding: 0;}.group-node__close {@@ -6313,8 +6364,64 @@ button.group-node__setup:disabled {color: var(--muted);}+/* ---- Canvas controls (bottom-left) ----+ Same plate and --float-gap offset as the other floating chrome; the library's own glyphs are+ replaced in Canvas.tsx, so these rules only size and color our 16px icons. */+.react-flow__controls {+ margin: var(--float-gap) !important;+ border: 1px solid var(--border);+ border-radius: 10px;+ overflow: hidden;+ box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));+}++/* Each button wraps in a Tooltip span, which must not break the library's vertical stack. */+.react-flow__controls .tooltip-trigger {+ display: block;+}++.react-flow__controls-button {+ width: 28px;+ height: 28px;+ padding: 0;+ display: flex;+ align-items: center;+ justify-content: center;+ background: rgba(var(--menu-rgb), 0.85);+ border: none;+ border-bottom: 1px solid var(--border);+ color: var(--text);+}++.react-flow__controls .tooltip-trigger:last-child .react-flow__controls-button {+ border-bottom: none;+}++.react-flow__controls-button svg {+ width: 15px;+ height: 15px;+ max-width: none;+ max-height: none;+ fill: none;+ stroke: currentColor;+}++.react-flow__controls-button:hover {+ background: var(--panel-header);+}++/* Canvas lock toggle. The padlock strokes with currentColor, so the locked state tints via+ `color`. */+.react-flow__controls-button.canvas-lock-btn.locked {+ color: var(--accent);+ background: rgba(10, 132, 255, 0.14);+}+/* ---- Minimap ---- */.minimap {+ /* React Flow places its panels with a 15px margin; the app's overlays all sit one --float-gap+ from their edge, and the minimap and the controls are the two the library positions. */+ margin: var(--float-gap) !important;background: rgba(var(--menu-rgb), 0.85) !important;border: 1px solid var(--border);border-radius: 10px;@@ -6376,31 +6483,6 @@ button.group-node__setup:disabled {}}-/* React Flow controls dark theme */-.react-flow__controls {- border-radius: 10px;- overflow: hidden;- box-shadow: 0 8px 28px rgba(0, 0, 0, calc(0.4 * var(--shadow-k)));-}--.react-flow__controls-button {- background: var(--panel);- border-bottom: 1px solid var(--border);- color: var(--text);- fill: var(--text);-}--.react-flow__controls-button:hover {- background: var(--panel-header);-}--/* Canvas lock toggle (in the bottom-left Controls). The padlock fills with- currentColor, so the locked state tints via `color`. */-.react-flow__controls-button.canvas-lock-btn.locked {- color: var(--accent);- background: rgba(10, 132, 255, 0.14);-}-/* ---- Bottom-left pill cluster (usage + system resources) ----ONE flex row, because neither pill can hard-code an offset for the other: the usage pill's widthchanges with every number it prints, and it is absent altogether for a user with no agent@@ -6411,23 +6493,23 @@ button.group-node__setup:disabled {z-index, transform, filter or opacity here — any of them would trap both pills below the sidebar. */.canvas-pills {position: absolute;- left: 60px; /* clear the React Flow Controls column */- bottom: 18px;+ left: var(--float-gap);+ bottom: var(--float-gap);display: flex;align-items: center;gap: 8px;}/* ---- Resume-where-you-left-off card (breadcrumb trail, once per project activation) ---- */-/* Anchored in .flow-wrap under the controls cluster (top: 54px, 34px tall) rather than beside it,- so the two never overlap; the left side is the sessions sidebar's (top: 54px, left: 14px).+/* Anchored in .flow-wrap under the controls cluster (one --float-gap below the tab bar, 34px tall)+ rather than beside it, so the two never overlap; the left side is the sessions sidebar's.z-index 11 sits above the canvas and BELOW the sidebar (12) — a card the user has not dismissedmust never cover a panel they deliberately opened — and below the kanban overlay (25), where thecanvas and everything on it is correctly hidden. */.resume-card {position: absolute;- top: 100px;- right: 14px;+ top: calc(var(--tabbar-h) + var(--float-gap) + 34px + 12px);+ right: var(--float-gap);z-index: 11;width: 260px;max-width: calc(100vw - 28px);@@ -6674,12 +6756,18 @@ button.group-node__setup:disabled {background: rgba(var(--card-rgb), 0.92);border: 1px solid rgba(var(--tint-rgb), 0.08);color: rgba(var(--tint-rgb), 0.7);- font-size: 13px;cursor: pointer;}.usage-refresh:hover { color: var(--text-strong); }.usage-refresh:disabled { opacity: 0.4; cursor: default; }-.usage-refresh.spin { animation: usage-spin 0.9s linear infinite; }+/* Smaller than the shared 16px icon: these two live in a dense pill row and replaced a 13px+ glyph, so the row's height must not change. */+.usage-refresh svg,+.sessmem-panel__refresh svg {+ width: 14px;+ height: 14px;+}+.usage-refresh.spin svg { animation: usage-spin 0.9s linear infinite; }@keyframes usage-spin { to { transform: rotate(360deg); } }.usage-popover {@@ -6975,6 +7063,9 @@ button.group-node__setup:disabled {font-size: 14px;line-height: 1;cursor: pointer;+ display: inline-flex;+ align-items: center;+ justify-content: center;}.sessmem-row__kill:hover { color: var(--danger); background: rgba(var(--tint-rgb), 0.08); }/* The pane's descendants — the agent CLI itself included, since pane_pid is the pane's shell. */@@ -7013,13 +7104,12 @@ button.group-node__setup:disabled {border-radius: 11px;background: transparent;color: rgba(var(--tint-rgb), 0.7);- font-size: 13px;cursor: pointer;}.sessmem-panel__refresh:hover { color: var(--text-strong); background: rgba(var(--tint-rgb), 0.08); }.sessmem-panel__refresh:disabled { opacity: 0.4; cursor: default; }/* Same spin as the usage panel's refresh. */-.sessmem-panel__refresh.spin { animation: usage-spin 0.9s linear infinite; }+.sessmem-panel__refresh.spin svg { animation: usage-spin 0.9s linear infinite; }/* ---- Claude context-window meter (per-node header pill + popover) ---- */.ctx-meter {@@ -7404,11 +7494,11 @@ button.group-node__setup:disabled {/* Sessions sidebar — shell */.sessions-sidebar {position: absolute;- top: 54px;- left: 14px;+ top: calc(var(--tabbar-h) + var(--float-gap));+ left: var(--float-gap);z-index: 12;width: 300px;- max-height: calc(100vh - 96px);+ max-height: calc(100vh - var(--tabbar-h) - 26px - 2 * var(--float-gap));display: flex;flex-direction: column;background: rgba(var(--card-rgb), 0.96);@@ -7756,7 +7846,7 @@ button.group-node__setup:disabled {.ss-meta__project { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.ss-meta__project + .ss-meta__cwd::before { content: '· '; }-.sessions-icon-cluster { position: absolute; top: 54px; left: 14px; z-index: 11; }+.sessions-icon-cluster { position: absolute; top: calc(var(--tabbar-h) + var(--float-gap)); left: var(--float-gap); z-index: 11; }.sessions-icon-cluster button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--menu-rgb), 0.92); border: 1px solid var(--border); border-radius: 9px; color: var(--text); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, calc(0.3 * var(--shadow-k))); }.sessions-icon-cluster button:hover { background: var(--panel-header); }@@ -7778,7 +7868,7 @@ button.group-node__setup:disabled {display: flex;align-items: center;gap: 6px;- padding: 4px 6px;+ padding: 4px;background: var(--surface-overlay);}.dino-node__body {@@ -7811,7 +7901,7 @@ button.group-node__setup:disabled {display: flex;align-items: center;gap: 4px;- padding: 4px 6px;+ padding: 4px;border-bottom: 1px solid var(--border, #333);}.browser-node__btn {@@ -8658,8 +8748,8 @@ button.group-node__setup:disabled {/* ---- first-connect name/color prompt ---- */.presence-prompt {position: absolute;- top: 46px;- right: 12px;+ top: calc(var(--tabbar-h) + var(--float-gap));+ right: var(--float-gap);z-index: 14;width: 260px;padding: 12px;