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): symmetric notch extension + smaller done blob
enes5b69fa7fd247
diff --git a/src/renderer/hud/hud.css b/src/renderer/hud/hud.cssindex aef2e3ff4..907027b05 100644--- a/src/renderer/hud/hud.css+++ b/src/renderer/hud/hud.css@@ -60,21 +60,19 @@ body {.hud-capsule {position: absolute;top: 0;- /* Anchored at the notch's LEFT edge and grown leftward (translateX(-100%)): the capsule widens- the notch SIDEWAYS instead of adding height below it (owner: "notch'a ekstra height vermek- istemiyorum"). Collapsed height is exactly the bar, so the strip never gets taller than the- real notch. */- left: calc(var(--notch-center-x, 50%) - var(--notch-width, 200px) / 2);- transform: translateX(-100%);+ /* 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%);/* Shrink-to-fit so however many mascots are running, none clip. */width: auto;height: auto;max-height: var(--bar);overflow: hidden;background: var(--capsule-bg);- /* Right side square (it butts against the notch and shares its black); only the bottom-LEFT- corner rounds, so the pair reads as one wider notch. */- border-radius: 0 0 0 var(--capsule-radius);+ /* Both bottom corners round — the notch simply reads as a wider notch. */+ border-radius: 0 0 var(--capsule-radius) var(--capsule-radius);box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55);display: flex;flex-direction: column;@@ -177,8 +175,8 @@ body {/* A generic (gemini/custom) working slot: a pulsing coral dot. */.mascot--dot {- width: 9px;- height: 9px;+ width: 7px;+ height: 7px;border-radius: 50%;background: rgb(217, 120, 87);animation: hud-pulse 1.1s ease-in-out infinite;@@ -198,8 +196,9 @@ body {/* Green "done, unseen" blob — a 7×7 crisp green pixel circle (agent-notch look), built as a spritein lib/mascot.ts and shown as a pixelated background; CSS drives the shimmer. */.done-blob {- width: 12px;- height: 12px;+ /* Scaled with the mascots (they shrank ~0.72×) so the slot reads evenly. */+ width: 9px;+ height: 9px;background-repeat: no-repeat;background-position: center;background-size: contain;diff --git a/src/renderer/hud/main.ts b/src/renderer/hud/main.tsindex 9031579a2..38c228723 100644--- a/src/renderer/hud/main.ts+++ b/src/renderer/hud/main.ts@@ -65,6 +65,8 @@ root.append(capsule)let expanded = falselet latestRows: HudRow[] = []+// Notch width from main's geometry push — drives the symmetric right-hand padding.+let notchWidthPx = 168// Which subagent disclosures the user has opened (by nodeId), preserved across re-renders.const openSubs = new Set<string>()@@ -99,6 +101,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 widthwindow.hud.setExpanded(expanded)}@@ -316,10 +319,24 @@ 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 {+ if (expanded) {+ capsule.style.paddingRight = ''+ return+ }+ const ext = indicator.offsetWidth+ capsule.style.paddingRight = ext > 0 ? `${notchWidthPx + ext}px` : ''+}+function render(rows: HudRow[]): void {latestRows = rowsrenderIndicator(rows)renderPanel(rows)+ syncCapsuleSymmetry()// 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.@@ -329,7 +346,10 @@ function render(rows: HudRow[]): void {function applyGeometry(push: HudPush): void {const rs = document.documentElement.stylers.setProperty('--bar', `${push.bar}px`)- if (typeof push.notchWidth === 'number') rs.setProperty('--notch-width', `${push.notchWidth}px`)+ if (typeof push.notchWidth === 'number') {+ notchWidthPx = push.notchWidth+ rs.setProperty('--notch-width', `${push.notchWidth}px`)+ }if (typeof push.notchCenterX === 'number') rs.setProperty('--notch-center-x', `${push.notchCenterX}px`)// No physical notch → draw a standalone floating pill instead of fusing to y=0.document.documentElement.classList.toggle('notchless', push.hasNotch === false)