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
fix(notch-hud): hover opens the panel; smaller mascots; capsule sits flush
enes63553a10dc57
diff --git a/src/main/notch-hud.ts b/src/main/notch-hud.tsindex b7eee49c4..8b7ad71cd 100644--- a/src/main/notch-hud.ts+++ b/src/main/notch-hud.ts@@ -27,10 +27,11 @@ import { createHudModel, type HudModel } from './notch-hud-model'const NOTCH_BAR_FLOOR = 24/*** Assumed physical notch WIDTH (px). Electron exposes no `auxiliaryTopLeftArea`, so we assume a- * centered notch of this width and FUSE the capsule to it (its collapsed width). ~200 px covers the- * 14"/16" MacBook notch. TUNE ON A MAC if the capsule reads narrower/wider than the physical notch.+ * centered notch of this width, and the capsule butts against its LEFT edge. Field-tuned to 168 px+ * (200 left a visible gap — the capsule sat too far left). TUNE ON A MAC: raise it to push the+ * capsule LEFT, lower it to slide the capsule RIGHT toward the notch.*/-const NOTCH_WIDTH = 200+const NOTCH_WIDTH = 168/*** A top inset (`workArea.y - bounds.y`) at least this tall (px) means a PHYSICAL notch is present:* a notched Mac's menu bar is ~37 px, a notchless display's is ~24–25 px. Below this we treat thediff --git a/src/renderer/hud/main.ts b/src/renderer/hud/main.tsindex e2a190c93..9031579a2 100644--- a/src/renderer/hud/main.ts+++ b/src/renderer/hud/main.ts@@ -74,14 +74,26 @@ const openSubs = new Set<string>()// the OS still forwards MOVE events, so pointerenter fires and we flip click-through OFF to accept// clicks. Leaving the capsule re-enables click-through and collapses the panel (the click-away). The// transparent rest of the window stays click-through throughout.+// HOVER OPENS IT (owner: "üzerine gelince genişleme yok"). A short dwell keeps a pointer merely+// crossing the top edge from popping the panel; leaving collapses immediately. Clicking still+// toggles, so the panel can also be dismissed without moving away.+const HOVER_OPEN_MS = 180+let hoverTimer: number | undefined+capsule.addEventListener('pointerenter', () => {window.hud.setIgnoreMouse(false)+ window.clearTimeout(hoverTimer)+ hoverTimer = window.setTimeout(() => setExpanded(true), HOVER_OPEN_MS)})capsule.addEventListener('pointerleave', () => {+ window.clearTimeout(hoverTimer)window.hud.setIgnoreMouse(true)if (expanded) setExpanded(false)})-indicator.addEventListener('click', () => setExpanded(!expanded))+indicator.addEventListener('click', () => {+ window.clearTimeout(hoverTimer)+ setExpanded(!expanded)+})function setExpanded(next: boolean): void {if (expanded === next) return@@ -108,8 +120,8 @@ function reltime(ts: number): string {// and the Codex pet at 26px; these are the sensible defaults — NAIL EXACTLY ON A MAC (the notch// bar height varies by model, and 26px overflows a short bar). Aspect ratios are preserved from// the sprite geometry, so only the height matters.-const HUD_CLAUDE_H = 18-const HUD_CODEX_H = 24+const HUD_CLAUDE_H = 13+const HUD_CODEX_H = 17function claudeMascot(): HTMLElement {const el = document.createElement('span')