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.

Merge branch 'p2/blink' into feat/glyphgrid-phase2

enesa13a612a458d
diff --cc docs/superpowers/plans/2026-08-03-phase1b-device-checklist.md
index 44ca4ca54,3aecbed18..081e865ab
--- a/docs/superpowers/plans/2026-08-03-phase1b-device-checklist.md
+++ b/docs/superpowers/plans/2026-08-03-phase1b-device-checklist.md
@@@ -513,9 -518,22 +530,19 @@@ Auto after you switched builds, that i
## Known limitations (accepted for Phase 1b — verify they are what you see, not that they are absent)
- - **L1 — The cursor does not blink.** The shared renderer paints a static block cursor regardless
- of the "Cursor blink" setting. Decide on device whether this ships as-is or the setting should be
- gated in shared mode.
+ - **L1 — The cursor does not blink YET: the clock ships, the per-terminal phase hook is owed.**
+ Phase 2's blink task built the half that is hard to get right — one canvas-level clock
+ (`createCursorBlinkClock` in `SharedGlyphLayer.tsx`), gated on the setting, on a terminal holding
+ focus and on the board, whose repaint goes through the frame loop's one-shot `pulse()` so an idle
+ canvas ticks twice a second instead of returning to the display's refresh rate (4.19). What is
+ missing is the PRODUCER: nothing calls `setCursorBlinkTarget` yet, because the phase has to be
+ applied by the addon — a block cursor is a CELL rewrite and every other shape is an overlay, so
+ only `GlyphGridRendererAddonCore` can suppress whichever half a terminal is drawing. It needs a
+ `setCursorBlinkPhase(visible)` entry point (repacking the cursor row SYNCHRONOUSLY — a deferred
+ repack escapes the clock's damage bracket and takes the `wake()` path, which is the failure the
+ clock exists to prevent) plus a focus-driven `setCursorBlinkTarget(…)` call from the attach shell.
+ Both files were out of scope for the task that built the clock. Until then the shared renderer
+ paints a static cursor regardless of the setting, exactly as it did in Phase 1b.
-- **L4 — Square plate corners.** The grid's plate is a rectangle; the node has `border-radius: 10px`
- and cannot clip the canvas (it is not a DOM child), so the body's corners read square in shared
- mode. Phase 2: rounded/stencilled plate.
- **L5 — FIXED in round 2 (bands at the bottom/right).** Kept here as the record, because it is the
one item on this list whose expected observation INVERTED. It used to read: the plate covers the
grid plus one scalar of host padding (`padPx`, the 6px max of `.term-node__xterm`'s asymmetric