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): the capsule grows left-only — no more covering menu-bar status items
enesa82659d6a69d
diff --git a/docs/notch-hud.md b/docs/notch-hud.mdindex 8a8bdacce..9748fe4f0 100644--- a/docs/notch-hud.md+++ b/docs/notch-hud.md@@ -93,12 +93,13 @@ the click-through hotspot (`pointerenter` → main `setIgnoreMouse(false)`, leavthe transparent rest of the window stays click-through. Hidden entirely when idle (no empty pill).- **Collapsed capsule**: never taller than the real notch (owner: "notch'a ekstra height vermek- istemiyorum"). It is `--bar` tall (`max-height`), shrink-to-fit wide, anchored at the notch's- horizontal centre, and the mascots are vertically centred in that strip — the notch reads as- WIDER, not taller, so the Dynamic-Island bulge below the bar line was dropped (`--capsule-drop` is- now `0px` and only survives for the expand math). The content occupies the strip LEFT of the- notch, so `syncCapsuleSymmetry` pads the right by `notchWidth + measured content width` and the- black sticks out by the same amount on both sides. The collapsed content is decided by ONE pure+ istemiyorum"). It is `--bar` tall (`max-height`), shrink-to-fit wide, its RIGHT edge pinned+ to the notch's right edge, and the mascots are vertically centred in that strip — the notch reads+ as WIDER, not taller, so the Dynamic-Island bulge below the bar line was dropped (`--capsule-drop`+ is now `0px` and only survives for the expand math). The content occupies the strip LEFT of the+ notch and `syncCapsuleOverhang` pads the right by exactly the notch width, so the capsule grows+ LEFT-ONLY. (It used to grow symmetrically; on a crowded menu bar the right-hand overhang covered+ the status items and — being the click-through hotspot — swallowed their clicks. Issue #78.) The collapsed content is decided by ONE purerule, `buildIndicator` (`src/renderer/hud/indicator.ts`, unit-tested with `orderIndicatorAgents`):a slot per agent kind that is working: claude → 2-frame coral pixel mascot walking; codex → the petspritesheet first-row crop (`image-rendering: pixelated`); grok/gemini/opencode → their own branddiff --git a/src/renderer/hud/hud.css b/src/renderer/hud/hud.cssindex d3ecbc22f..b26170e6d 100644--- a/src/renderer/hud/hud.css+++ b/src/renderer/hud/hud.css@@ -60,11 +60,13 @@ body {.hud-capsule {position: absolute;top: 0;- /* CENTRED on the notch and widened SIDEWAYS, never taller (owner: "notch'a ekstra height- vermek istemiyorum"). The mascots occupy only the strip LEFT of the notch; main.ts pads the- right by `notch + content` so the black sticks out by the SAME amount on both sides. */- left: var(--notch-center-x, 50%);- transform: translateX(-50%);+ /* Widened SIDEWAYS, never taller (owner: "notch'a ekstra height vermek istemiyorum") — and+ LEFT-ONLY: the right edge is pinned to the notch's right edge, so the capsule can never+ creep over the menu-bar status items (or swallow their clicks) however many mascots are+ running. main.ts pads the right by exactly the notch width; the mascots occupy the strip+ LEFT of it (issue #78). */+ left: calc(var(--notch-center-x, 50%) + var(--notch-width, 200px) / 2);+ transform: translateX(-100%);/* Shrink-to-fit so however many mascots are running, none clip. */width: auto;height: auto;@@ -80,7 +82,9 @@ body {will-change: width, max-height;transition:max-height var(--capsule-dur) var(--capsule-ease),- border-radius var(--capsule-dur) var(--capsule-ease);+ border-radius var(--capsule-dur) var(--capsule-ease),+ left var(--capsule-dur) var(--capsule-ease),+ transform var(--capsule-dur) var(--capsule-ease);}.hud-capsule--hidden {display: none; /* idle: no empty black pill */diff --git a/src/renderer/hud/main.ts b/src/renderer/hud/main.tsindex 1a73de9dd..e80e0d0a0 100644--- a/src/renderer/hud/main.ts+++ b/src/renderer/hud/main.ts@@ -108,7 +108,7 @@ function setExpanded(next: boolean): void {if (expanded === next) returnexpanded = nextcapsule.classList.toggle('expanded', expanded)- syncCapsuleSymmetry() // expanded: drop the padding so the panel gets the full width+ syncCapsuleOverhang() // expanded: drop the padding so the panel gets the full widthwindow.hud.setExpanded(expanded)}@@ -367,24 +367,26 @@ function buildSubItem(s: HudSubagentRow): HTMLElement {// ---- Render + geometry ----------------------------------------------------------------------// The capsule is CENTRED on the notch and its content (the mascots) occupies only the strip LEFT of-// it, so we pad the right by `notch + content` — that makes the black stick out by exactly the same-// amount on both sides (owner: "soldan ne kadar genişlettiysen sağdan da o kadar"). The content width-// is measured, not guessed, so it stays symmetric as slots come and go.-function syncCapsuleSymmetry(): void {+// The capsule grows LEFT-ONLY: its right edge stays flush with the notch's right edge, and the+// content (the mascots) occupies only the strip LEFT of the notch — the right padding covers+// exactly the notch itself, nothing more. This retires the earlier symmetric growth ("soldan ne+// kadar genişlettiysen sağdan da o kadar"): on a crowded menu bar the symmetric right-hand+// overhang sat ON TOP of the status items, and because the capsule is the click-through hotspot,+// hovering there also swallowed their clicks (issue #78 — grow-left approved by the owner there).+function syncCapsuleOverhang(): void {if (expanded) {capsule.style.paddingRight = ''return}const ext = indicator.offsetWidth- capsule.style.paddingRight = ext > 0 ? `${notchWidthPx + ext}px` : ''+ capsule.style.paddingRight = ext > 0 ? `${notchWidthPx}px` : ''}function render(rows: HudRow[]): void {latestRows = rowsrenderIndicator(rows)renderPanel(rows)- syncCapsuleSymmetry()+ syncCapsuleOverhang()// Idle → hide the whole capsule (no empty black pill); active → the fused capsule shows.capsule.classList.toggle('hud-capsule--hidden', rows.length === 0)// Auto-collapse if there is nothing to show.