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
feat(glass): needs-you glows as an inner light under Liquid Glass
iceclatterWT863025216e8e
diff --git a/CLAUDE.md b/CLAUDE.mdindex b1264d406..a837acb84 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -3902,6 +3902,12 @@ glass never sits over plain black; a wallpaper the user chose is never replaced.moves (`.canvas-moving`); chrome keeps both. MEASURED on the live dev build (CDP computed style):Chromium keeps `url("#nt-refract") blur(…) saturate(…)` on the tab bar, dock, sessions sidebar,minimap, zoom controls and terminal nodes.+- **Needs-you on glass is an INNER light** (the user's pick, "variant B"): the outer red `::after`+ halo is hidden and a `::before` on the React Flow wrapper paints an inset rim light in+ `--state-attention` (orange) that breathes 0.35 → 1 over 2.4 s — `pointer-events: none`, above the+ glass body (z 5), and fading out ~36px inside the rim so terminal text stays readable. It reads+ `--nt-anim-state` (the covered-canvas pause), holds static-lit when the window is idle and static+ at 0.7 under Reduce Motion. The default look keeps its outer glow.- **Accessibility outranks the slider** (HIG liquid-glass.md, like iOS). `lib/useGlassA11y.ts`reads `prefers-reduced-transparency` and `prefers-contrast: more` (one subscription, Electron andbrowser alike) and `glassSurfaceAlpha` applies them to every tint alpha: **Reduce Transparency**diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 2413e5321..3c1a353ee 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -13786,3 +13786,56 @@ body.focus-mode .dock:hover {animation: none;}}++/* ---- Needs-you under Liquid Glass: an inner light, not an outer pulse -------------------------+ The picked variant ("inner light"): the node's own rim glows orange from inside and breathes,+ instead of a red halo pulsing outside it. On glass an outer halo is lost against the wallpaper;+ light held inside the pane reads as the pane itself asking. It is an inset edge light only —+ `pointer-events: none`, and the wash fades out within ~36px of the rim, so terminal text stays+ readable under it. Same --state-attention as the minimap stroke and the header badge. The default+ look keeps its outer glow. Gates: idle = static-lit, covered canvas = paused (it reads+ --nt-anim-state), Reduce Motion = static. */+:root[data-nt-glass='on'] .term-node.attention {+ border-color: color-mix(in srgb, var(--state-attention) 55%, transparent);+ border-top-color: color-mix(in srgb, var(--state-attention) 55%, transparent) !important;+ box-shadow: 0 12px 40px rgba(0, 0, 0, calc(0.35 * var(--shadow-k)));+}+:root[data-nt-glass='on'] .react-flow__node:has(.term-node.attention)::after {+ display: none;+}+:root[data-nt-glass='on'] .react-flow__node:has(.term-node.attention)::before {+ content: '';+ position: absolute;+ inset: 0;+ border-radius: 14px;+ pointer-events: none;+ z-index: 5;+ box-shadow:+ inset 0 0 0 1px color-mix(in srgb, var(--state-attention) 60%, transparent),+ inset 0 0 36px 2px color-mix(in srgb, var(--state-attention) 38%, transparent);+ opacity: 0.35;+ animation: nt-attention-breathe 2.4s ease-in-out infinite;+ animation-play-state: var(--nt-anim-state);+ will-change: opacity;+}+@keyframes nt-attention-breathe {+ 0%,+ 100% {+ opacity: 0.35;+ }+ 50% {+ opacity: 1;+ }+}+:root[data-nt-glass='on'][data-nt-window='idle'] .react-flow__node:has(.term-node.attention)::before {+ animation: none;+ opacity: 0.8;+ will-change: auto;+}+@media (prefers-reduced-motion: reduce) {+ :root[data-nt-glass='on'] .react-flow__node:has(.term-node.attention)::before {+ animation: none;+ opacity: 0.7;+ will-change: auto;+ }+}diff --git a/src/renderer/styles.palette.test.ts b/src/renderer/styles.palette.test.tsindex d45f3fec5..afe7cf8ca 100644--- a/src/renderer/styles.palette.test.ts+++ b/src/renderer/styles.palette.test.ts@@ -202,3 +202,27 @@ describe('Liquid Glass accessibility fallbacks', () => {expect(all).toMatch(/\.minimap \.mm-unread \{\s*animation: none/)})})++describe('needs-you under Liquid Glass is an inner light', () => {+ const rule = (sel: string): string => {+ const i = CSS.indexOf(`${sel} {`)+ expect(i, sel).toBeGreaterThanOrEqual(0)+ return CSS.slice(i, CSS.indexOf('}', i))+ }+ const before = ":root[data-nt-glass='on'] .react-flow__node:has(.term-node.attention)::before"++ it('an inset rim light in --state-attention that never takes the pointer', () => {+ const r = rule(before)+ expect(r).toContain('pointer-events: none')+ expect(r).toMatch(/inset 0 0 0 1px color-mix\(in srgb, var\(--state-attention\)/)+ expect(r).toContain('animation-play-state: var(--nt-anim-state)')+ expect(rule(":root[data-nt-glass='on'] .react-flow__node:has(.term-node.attention)::after")).toContain('display: none')+ })++ it('holds still when the window is idle and under Reduce Motion', () => {+ expect(rule(`:root[data-nt-glass='on'][data-nt-window='idle'] .react-flow__node:has(.term-node.attention)::before`)).toContain('animation: none')+ const reduced = CSS.slice(CSS.lastIndexOf('@media (prefers-reduced-motion: reduce) {'))+ expect(reduced).toContain(before)+ expect(reduced).toContain('animation: none')+ })+})