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
Merge origin/main into feat/focus-mode — registry dispatcher supersedes the hardcoded keydown block
enesd0d2e7a9191f
diff --cc src/renderer/canvas/Canvas.tsxindex 71a6cf7d7,a8d98b78c..eb07b41bf--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@@ -8970,15 -10033,19 +10099,27 @@@ export function Canvas()icon: <IconRemote />,run: () => void connectRemote()},+ {+ id: 'focus-node',+ label: 'Focus node',+ hint: 'zen fullscreen fill distraction',+ section: 'View',+ icon: <IconFit />,+ run: toggleFocusMode+ },{ id: 'fit', label: 'Fit view', icon: <IconFit />, run: fitAll },+ // Hidden below 2 top-level nodes — see arrangeAllNodes.+ ...(hasArrangeableNodes()+ ? [+ {+ id: 'arrange-all',+ label: 'Tidy canvas',+ hint: 'arrange grid layout organize clean up',+ icon: <IconGrid />,+ run: arrangeAllNodes+ } as Command+ ]+ : []),{ id: 'zoom-100', label: 'Zoom to 100%', icon: <IconFit />, run: zoomTo100 },{ id: 'save', label: 'Save', icon: <IconSave />, run: () => void persist() },// Hidden when the canvas has no restartable agent node — the row would have nothing to act@@@ -9085,7 -10152,8 +10226,9 @@@hasRestartableAgents,restartIdleAgents,zoomTo100,+ arrangeAllNodes,- hasArrangeableNodes++ hasArrangeableNodes,+ toggleFocusMode])// Build the palette's command list only when its inputs change — the inline `buildCommands()`diff --cc src/renderer/styles.cssindex faa0bdcae,8ddf8fc14..fe0e1859d--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@@ -10739,80 -11040,50 +11040,127 @@@ button.group-node__setup:disabledscrollbar-width: thin;}+/* ================================= Focus mode (issue #78) ==================================+ One terminal fills the window. The surface is a fixed opaque layer ABOVE the canvas (z 40 —+ over the sidebar's 12 and the dock's 20, under menus at 46 and dialogs at 55/70), and the+ focused `.term-node` is REPARENTED into it (TerminalNode's layout effect) — same element,+ same xterm, no respawn. Chrome is not "hidden": it simply sits under the opaque surface, and+ the dock is lifted above it (z 41) on pointer proximity / hover. */+.focus-surface {+ position: fixed;+ inset: 0;+ z-index: 40;+ display: none;+}+.focus-surface.is-active {+ display: block;+ background: var(--canvas-bg);+}+/* The reparented node root: fill the surface edge to edge. width/height 100% still resolve+ against the surface; the absolute inset pins it regardless of the flow-node sizing props. */+.focus-surface .term-node {+ position: absolute;+ inset: 0;+ width: auto;+ height: auto;+ border-radius: 0;+}+/* Canvas-only affordances are meaningless off-canvas: resize grips, link handles, flow ports. */+.focus-surface .react-flow__resize-control,+.focus-surface .bridge-handle,+.focus-surface .react-flow__handle {+ display: none;+}+.focus-exit {+ position: absolute;+ top: 10px;+ right: 14px;+ z-index: 2;+ border: 1px solid var(--border);+ background: rgba(var(--menu-rgb), 0.92);+ color: var(--text);+ border-radius: 999px;+ font-size: 11px;+ padding: 4px 12px;+ cursor: pointer;+ opacity: 0.4;+ transition: opacity 0.16s ease-out;+}+.focus-exit:hover {+ opacity: 1;+}+/* The canvas itself goes display:none, not merely covered (review finding on #267): an+ IntersectionObserver does not model occlusion, so covered-but-displayed terminals kept+ reporting visible, kept their WebGL contexts, and a full budget then refused the one node+ filling the screen (tryGrant only evicts HIDDEN holders). display:none zeroes their geometry,+ they report hidden, the budget reclaims them — and 16+ occluded terminals stop rendering+ frames nobody can see. Their size votes go null via applyFit's focus gate, like the board. */+body.focus-mode .flow-wrap {+ display: none;+}+/* Dock reveal: proximity (Canvas toggles `focus-reveal-bottom` on mousemove) or direct hover+ keeps it up once revealed. Lifted above the surface, faded via opacity only. */+body.focus-mode .dock {+ z-index: 41;+ opacity: 0;+ pointer-events: none;+ transition: opacity 0.16s ease-out;+}+body.focus-mode.focus-reveal-bottom .dock,+body.focus-mode .dock:hover {+ opacity: 1;+ pointer-events: auto;+}+@media (prefers-reduced-motion: reduce) {+ .focus-exit,+ body.focus-mode .dock {+ transition: none;+ }+}+ /* S6 — account identity + provenance pills (AccountIdentityPills). One cluster wherever a Codex+ account is shown (settings, node chrome, create/switch menus) so an account reads identically+ everywhere. Theme-aware via --tint-rgb / semantic tokens; no new colour language. */+ .account-identity-pills {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ min-width: 0;+ vertical-align: middle;+ }+ .account-identity-pill {+ max-width: 22ch;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ padding: 1px 8px;+ border-radius: 999px;+ font-size: 12px;+ font-weight: 500;+ color: var(--text);+ background: rgba(var(--tint-rgb), 0.08);+ }+ .account-provenance-pill {+ flex: none;+ padding: 1px 8px;+ border-radius: 999px;+ font-size: 11px;+ font-weight: 500;+ color: var(--muted);+ background: rgba(var(--tint-rgb), 0.05);+ border: 1px solid var(--border);+ }+ .account-identity-check {+ flex: none;+ font-size: 12px;+ line-height: 1;+ color: var(--accent);+ }+ /* A managed home that is missing / an account that cannot be operated: the same cluster, warned.+ Recolour text + outline with the warn token; no tinted fill (there is no --warn-rgb to build+ a translucent background from, and the theme guard forbids referencing an undefined variable). */+ .account-identity-pills--warning .account-identity-pill,+ .account-identity-pills--warning .account-provenance-pill {+ color: var(--warn);+ border: 1px solid var(--warn);+ background: transparent;+ }