Skip to content

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.

fix(notch-hud): centre the mascots; the green blob clears AFTER you read it

enesf540d3bcf28f
diff --git a/src/main/notch-hud.ts b/src/main/notch-hud.ts
index 8b7ad71cd..e1c1f2665 100644
--- a/src/main/notch-hud.ts
+++ b/src/main/notch-hud.ts
@@ -32,6 +32,8 @@ const NOTCH_BAR_FLOOR = 24
* capsule LEFT, lower it to slide the capsule RIGHT toward the notch.
*/
const NOTCH_WIDTH = 168
+/** How long the panel must stay open before closing it counts as "read" (clears done latches). */
+const PANEL_READ_MS = 700
/**
* 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 the
@@ -100,6 +102,8 @@ class NotchHudController {
private readonly onSetIgnoreMouse: (_e: unknown, ignore: boolean) => void
private readonly onFocusNode: (_e: unknown, nodeId: string) => void
private readonly onExpanded: (_e: unknown, expanded: boolean) => void
+ /** When the panel was opened (epoch ms), 0 while collapsed — gates the read-clear below. */
+ private panelOpenedAt = 0
private readonly onDisplayChange: () => void
constructor(private deps: NotchHudDeps) {
@@ -124,8 +128,16 @@ class NotchHudController {
this.schedulePush()
}
this.onExpanded = (_e, expanded) => {
- // Opening the panel is itself a "you looked at it" signal — clear every done latch.
+ // The done latch clears when the panel CLOSES, not when it opens — and only after it was
+ // open long enough to read (field bug: with hover-to-open the green blob vanished the instant
+ // the pointer arrived, before anything could be read). So: hover, read, leave → it clears.
if (expanded) {
+ this.panelOpenedAt = Date.now()
+ return
+ }
+ const openFor = this.panelOpenedAt ? Date.now() - this.panelOpenedAt : 0
+ this.panelOpenedAt = 0
+ if (openFor >= PANEL_READ_MS) {
this.model.notePanelOpened()
this.schedulePush()
}
diff --git a/src/renderer/hud/hud.css b/src/renderer/hud/hud.css
index 907027b05..ddb14969f 100644
--- a/src/renderer/hud/hud.css
+++ b/src/renderer/hud/hud.css
@@ -110,19 +110,19 @@ body {
border-radius: var(--pill-radius);
}
-/* --- Collapsed indicator: the mascots, BOTTOM-LEFT inside the sideways notch extension ---
- The capsule is exactly bar-tall, so the mascots stand on the bar's bottom edge, left-packed,
- inside black that butts against the notch — the notch reads as wider, never taller.
+/* --- Collapsed indicator: the mascots, LEFT and vertically CENTRED in the notch strip ---
+ The capsule is exactly bar-tall, so the mascots sit centred on the bar's midline, left-packed,
+ inside black that extends the notch — the notch reads as wider, never taller.
Hidden when expanded (the rows carry their own icons). */
.hud-indicator {
display: flex;
- /* Bottom-LEFT: the mascots stand on the bar's bottom edge, left-packed (owner's placement). */
- align-items: flex-end;
+ /* Vertically CENTRED in the notch strip, horizontally left-packed (owner's placement). */
+ align-items: center;
justify-content: flex-start;
gap: 8px;
width: auto;
height: var(--bar);
- padding: 0 8px 3px 10px;
+ padding: 0 8px 0 10px;
}
.hud-capsule.expanded .hud-indicator {
display: none;