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
perf(glass): frost terminals with a static wallpaper copy; refraction only on the Clear side
enes597ee34da4bd
diff --git a/CLAUDE.md b/CLAUDE.mdindex aceb8201b..18fa35f1b 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -7740,9 +7740,17 @@ glass never sits over plain black; a wallpaper the user chose is never replaced.same 24.4px at the tick, `16 + 12t − 12·max(0, 1 − t/0.7)`, picked by eye so Clear reads through; saturation`--glass-sat` 180% at Clear → 150% from the Readable tick to Tinted, text surfaces a flat 150% —round 2 N9: 1.6–2.0 turned glass olive or pink over bright wallpapers). **Refraction** is ONE shared SVG filter- (`components/GlassRefraction.tsx`, `#nt-refract`: a 256² edge-lens displacement map generated once,+ (`components/GlassRefraction.tsx`, `#nt-refract`: a 32² edge-lens displacement map generated once,`primitiveUnits="objectBoundingBox"` so one filter fits every element), referenced from- `--glass-blur` as `url(#nt-refract)` — no per-node filters. **It runs after the blur**+ `--glass-blur` as `var(--glass-refract,)` — no per-node filters. **It runs only LEFT of the+ Readable tick** (`glassRefractionOn`): App.tsx sets `--glass-refract: url(#nt-refract)` inline and+ mounts the filter only there; the stylesheet never declares it (`styles.palette.test.ts`). From the+ tick to Tinted it bent an already ~20px-blurred backdrop by ≤3px (0 at Tinted) and was the costliest+ filter in the chain: MEASURED (M2, six glass terminals, one streaming) 74% → 42% GPU without it. Its+ `feImage` source makes Chromium treat a refracting surface as damaged across its whole rect, so one+ changing pixel re-ran the blur of the glass around it. The map was 256²: that bitmap cost the+ renderer ~10% CPU per streaming terminal (paid per frame per refracting surface); 16–32² costs+ nothing measurable and draws the same lens (32 vs 256 at Clear: mean 0.02/255, max 7). **It runs after the blur**(`blur() saturate() url()`; only the colour-matrix squeeze may follow it, since it moves no pixels) and composites over its SourceGraphic so its output is opaque: first inthe chain (plus an in-filter soft blur with default edgeMode) it let Chromium show a 20–40px band ofSHARP backdrop inside every glass rim at every slider value (visual QA C1). Measured on an empty@@ -7761,7 +7769,42 @@ glass never sits over plain black; a wallpaper the user chose is never replaced.default ON, read through `keepGlassBlurWhileMoving` — only a literal `false` pauses): on, Canvasnever adds the class, so the glass stays live through a pan at a GPU cost; chrome keeps both always. 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.+ minimap, zoom controls and terminal nodes (that was measured before refraction became Clear-side+ only; at Readable and right of it the chain now ends at the colour filters).+- **Glass terminal nodes frost with a STATIC copy of the wallpaper, not a live backdrop-filter**+ (`lib/glassFrost.ts`, `canvas/GlassFrostSync.tsx`, the `.term-node__frost` rules). Chromium re-runs+ a backdrop filter every time its surface is redrawn, and a terminal is redrawn for every line an+ agent prints, so each streaming terminal re-blurred itself (and, through damage expansion, the+ glass around it) at frame rate; idle cost nothing. MEASURED (M2, six glass terminals, Sonoma still,+ CDP + `ioreg` GPU utilisation, 3 interleaved rounds, medians): six streaming 92% → 42% GPU, 100% →+ 50% CPU; one streaming 71% → 20% GPU, 32% → 20% CPU (with the refraction change above); no glass at+ all is 27% / 9%. A node's `.term-node__frost` child paints the wallpaper behind it with the SAME+ chain as an ordinary `filter` (`var(--glass-term-blur) var(--term-glass-backdrop,)`) and the tint+ on its `::after`; that content does not change while the camera is still, so Chromium draws it once+ and reuses it. Rules a refactor must keep:+ - **Alignment is in flow units.** `frostBox` maps `.canvas-root`'s wallpaper (cover, centred; a+ gradient fills the root box) into flow coordinates from React Flow's transform and the pane's+ offset; each node subtracts its own `positionAbsoluteX/Y` (`--node-x/y`). Measured against the+ live backdrop at zoom 1, 0.78 after a pan, and after a drag: node interiors mean ≤0.8/255, max 5.+ - **The alignment vars are written onto each frost layer, never onto React Flow's root**: a custom+ property change restyles every element under it (`lib/canvasZoomVar.ts`), and a pan is a change+ per frame. Layers register through `useFrostLayer`.+ - **The picture is ONE stylesheet rule** GlassFrostSync renders, a ≤1280px WebP copy as a data: URL+ (the CSP allows data: images, not blob:), never a custom property (Chromium drops a var() value+ past ~2 MB).+ - **No stacking context on the node** (no `isolation`): the frost's `z-index: -1` must land in the+ React Flow wrapper's context, under the node's border; inside the node it painted over the 1px+ glass edge.+ - It reaches `FROST_PAD` (80px) past the node so the blur samples the wallpaper beside it: the+ live backdrop clamped at the node's edge instead, so the outermost 1–2px are a touch lighter.+ - **Live backdrop stays** for a focused node (focus mode moves it out of the canvas), an aerial+ video wallpaper (cannot be copied), Reduce Transparency, and until the copy is ready. Canvas cards+ (files/subagent/loop/trigger/dino) still frost live.+ - **What it cannot show**: anything behind the node but the wallpaper — the dot grid, edges, and+ above all another node a glass node overlaps (visible at Clear, where the live glass was thin).+ - Pan cost: the frost re-renders per camera frame like the live blur did (measured 44% vs 38% GPU+ during a continuous pan, CPU equal); with Keep blur while moving off it drops to the squeeze.+ `scripts/glass-trap-probe.mjs` counts a displayed frost layer as the blurred backdrop of its node.- **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@@ -9624,6 +9667,14 @@ script (`fetch('http://localhost:9333/json')`, then a WebSocket to the page):46-node canvas: idle renderer+GPU ~120% → ~25% (#1050).- **Never promote the React Flow viewport** (`will-change: transform`) — it is a canvas-sizedlayer; on a real canvas it overran the tile budget (flicker) with no CPU gain (#1047).+- **A `backdrop-filter` is re-run every time its surface is drawn, and nothing caches it** — not+ for the surface's own content changes, not when moved to a sibling layer under the content (both+ measured). Glass on anything that updates often (a terminal) costs a full blur per update, and+ pixel-moving filters spread the damage to neighbouring glass. A plain `filter` on content that+ does not change IS reused. Liquid Glass terminals therefore frost a static wallpaper copy (see+ **Glass terminal nodes frost with a STATIC copy**): six streaming terminals 92% → 42% GPU. And an+ SVG `feImage` in a filter chain marks its whole surface damaged: keep reference filters off+ surfaces that redraw.- **An all-filtered node-change batch must not reach `onNodesChange`** (`handleNodesChange` returnsearly). `applyNodeChanges([])` returns a NEW array; a new `nodes` rebuilds the ephemeralsubagent/loop cards without `measured`, React Flow re-observes them and its ResizeObserverdiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex a705238ac..c4c8861c9 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -1492,6 +1492,11 @@ bite most often:- `handleNodesChange` must not call `onNodesChange` with an empty batch (it re-renders the canvasevery frame through React Flow's ResizeObserver).- Work done per terminal on a project switch must be coalesced and on-screen-first.+- Don't put a `backdrop-filter` on a surface whose content changes often. Chromium re-runs it+ every time the surface is drawn, and the damage spreads to the glass next to it. Liquid Glass+ terminals frost a static wallpaper copy instead (`.term-node__frost`, `lib/glassFrost.ts`): six+ streaming terminals went from 92% to 42% GPU. The SVG refraction filter (`url(#nt-refract)`)+ runs only left of the Readable tick, for the same reason.- macOS memory pressure comes from the kernel's level (`onKernelPressure` in`core/memory-pressure.ts`), fired on escalations only, and at the same severity at most once per`KERNEL_LEVER_GAP_MS` (a level flapping normal/warn re-arms it every fall). Never re-fire it on adiff --git a/scripts/glass-trap-probe.mjs b/scripts/glass-trap-probe.mjsindex 24e9e9d81..645bef4ae 100644--- a/scripts/glass-trap-probe.mjs+++ b/scripts/glass-trap-probe.mjs@@ -104,7 +104,14 @@ export function glassTrapProbe(SCRIMS, midAnim) {/filter|opacity|mask|clip-path|mix-blend/.test(cs.willChange))}- const hasBlur = (el) => blurs(getComputedStyle(el)) || blurs(pseudoOf(el, '::before'))+ // Static frost (src/renderer/lib/glassFrost.ts): a glass terminal paints an opaque, blurred copy+ // of the wallpaper on a `.term-node__frost` child under its content instead of carrying a+ // backdrop-filter of its own. That layer is what shows behind the node's header and body.+ const frosted = (el) => {+ const f = el.querySelector(':scope > .term-node__frost')+ return !!f && getComputedStyle(f).display !== 'none' && /blur\(/.test(getComputedStyle(f, '::before').filter || '')+ }+ const hasBlur = (el) => blurs(getComputedStyle(el)) || blurs(pseudoOf(el, '::before')) || frosted(el)const floats = (el) => /absolute|fixed|sticky/.test(getComputedStyle(el).position)const opaque = (e) => alphaOf(getComputedStyle(e).backgroundColor) >= 0.9const inside = (a, b) => a.left >= b.left - 1 && a.top >= b.top - 1 && a.right <= b.right + 1 && a.bottom <= b.bottom + 1diff --git a/src/renderer/App.tsx b/src/renderer/App.tsxindex a55b528cf..3e5effbc4 100644--- a/src/renderer/App.tsx+++ b/src/renderer/App.tsx@@ -33,6 +33,7 @@ import {glassControlClearAlpha,glassFrostFloor,glassMinRatio,+ glassRefractionOn,glassSurfaceAlpha,parseCssColor,resolveGlassSlider@@ -126,6 +127,10 @@ export default function App() {const glassA11y = useGlassA11y()// Increase Contrast pins the WHOLE slider to Tinted — alpha, blur and refraction alike.const glassT = glassA11y.moreContrast ? 1 : glassSlider+ // The rim refraction runs only left of the Readable tick (glassRefractionOn): from the tick to+ // Tinted it was invisible and the costliest filter in the chain. Off ⇒ no `--glass-refract`+ // and no filter element at all.+ const glassRefract = liquidGlass && !glassA11y.reduceTransparency && glassRefractionOn(glassT)// The readable alpha depends only on the resolved theme, and computing it is ~16k contrast// evaluations plus a style recalc; it is measured once per theme, never per slider input.const [glassChrome, setGlassChrome] = useState<{@@ -177,6 +182,7 @@ export default function App() {root.style.removeProperty('--glass-node-bg')root.style.removeProperty('--glass-node-squeeze')root.style.removeProperty('--glass-t')+ root.style.removeProperty('--glass-refract')return}const { text, panel, rgb, readable, controlClear } = glassChrome@@ -198,7 +204,9 @@ export default function App() {if (squeeze) root.style.setProperty('--glass-node-squeeze', squeeze)else root.style.removeProperty('--glass-node-squeeze')root.style.setProperty('--glass-t', glassT.toFixed(3))- }, [glassChrome, glassSlider, glassA11y, glassT])+ if (glassRefract) root.style.setProperty('--glass-refract', 'url(#nt-refract)')+ else root.style.removeProperty('--glass-refract')+ }, [glassChrome, glassSlider, glassA11y, glassT, glassRefract])// Apply the UI scale as page zoom (issue #299 — 4K readability; the why-page-zoom write-up// lives in shared/ui-scale.ts). Gated on `hydrated` so boot doesn't flash-reset a scaled window@@ -227,7 +235,7 @@ export default function App() {{/* The node-icon picker, opened from the node menu, a node header and the kanban cardmodal — one dialog for all three, driven by nodeIconDialog(). */}<NodeIconDialogHost />- {liquidGlass && !glassA11y.reduceTransparency && <GlassRefraction slider={glassT} />}+ {glassRefract && <GlassRefraction slider={glassT} />}</ReactFlowProvider></SessionProvider>)diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsxindex ca6fedd2b..c2ae2fae2 100644--- a/src/renderer/canvas/Canvas.tsx+++ b/src/renderer/canvas/Canvas.tsx@@ -6,6 +6,7 @@ import { withCodexNoDaemon } from '@shared/agents/codex-daemon'import { codexApprovalCaps } from '../state/codexCli'import { TEXT_NOT_SUBMITTED } from '@shared/text-delivery'import { VisibleMiniMap } from './VisibleMiniMap'+import { GlassFrostSync } from './GlassFrostSync'import { MinimapDock } from './MinimapDock'import { keepGlassBlurWhileMoving } from '../lib/glassContrast'import { LINK_ENDPOINT_NOT_FOUND } from '@shared/canvas-link'@@ -20035,6 +20036,9 @@ export function Canvas() {color="var(--canvas-dot)"/>)}+ {/* Liquid Glass static frost for terminal nodes: on/off, the wallpaper copy, and the+ per-frame alignment (GlassFrostSync.tsx). Renders a <style> rule or nothing. */}+ <GlassFrostSync />{/* The shared glyph canvas: a <ReactFlow> child (so it is a sibling of the backgroundand of the node renderer) at z-index 0 — above the dot grid, below every node. Onlymounted in the experimental 'shared' renderer mode; nothing about it exists for thediff --git a/src/renderer/canvas/GlassFrostSync.tsx b/src/renderer/canvas/GlassFrostSync.tsxnew file mode 100644index 000000000..8701f82c0--- /dev/null+++ b/src/renderer/canvas/GlassFrostSync.tsx@@ -0,0 +1,166 @@+import { memo, useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react'+import { useStore, useStoreApi } from '@xyflow/react'+import { useSettings } from '../state/settings'+import { useWallpaperBackground } from '../state/wallpaper'+import { useIsAerialWallpaper } from '../components/AerialWallpaper'+import { isLiquidGlass } from '../lib/appTheme'+import { useGlassA11y } from '../lib/useGlassA11y'+import { frostBox, frostImageSize, frostVars, wallpaperImageUrl } from '../lib/glassFrost'++/**+ * Static frost for Liquid Glass terminal nodes (lib/glassFrost.ts has the why and the numbers).+ *+ * This component decides whether the frost is on (`data-nt-frost` on <html>, which switches the+ * nodes' live backdrop-filter off in styles.css), prepares the wallpaper copy the frost paints, and+ * keeps every frost layer aligned with the real wallpaper as the camera moves.+ *+ * The alignment custom properties are written onto each registered frost layer, NEVER onto React+ * Flow's root: a custom property change restyles every element under the element it is set on+ * (lib/canvasZoomVar.ts), and a pan is a change per frame. A frost layer has no children, so the+ * per-frame write restyles a few dozen pseudo-elements, nothing else.+ */++const layers = new Set<HTMLElement>()+let current: Record<string, string> | null = null++function paint(el: HTMLElement): void {+ if (!current) return+ for (const [k, v] of Object.entries(current)) el.style.setProperty(k, v)+}++function publish(vars: Record<string, string> | null): void {+ current = vars+ for (const el of layers) {+ if (vars) paint(el)+ else for (const k of ['--frost-x', '--frost-y', '--frost-w', '--frost-h']) el.style.removeProperty(k)+ }+}++/** Ref callback for a node's `.term-node__frost` layer: registers it for alignment updates. */+export function useFrostLayer(): (el: HTMLDivElement | null) => void {+ const prev = useRef<HTMLDivElement | null>(null)+ return useCallback((el: HTMLDivElement | null) => {+ if (prev.current) layers.delete(prev.current)+ prev.current = el+ if (el) {+ layers.add(el)+ paint(el)+ }+ }, [])+}++interface FrostImage {+ /** The `background-image` value the frost paints. */+ css: string+ /** Natural size of the original image (cover placement); 0 for a gradient. */+ w: number+ h: number+}++const imageCache = new Map<string, Promise<FrostImage | null>>()++/** A downsized copy of a wallpaper image (lib/glassFrost.ts FROST_IMAGE_EDGE), as a data: URL —+ * the renderer's CSP allows data: images and not blob:. Keeps the two most recent. */+function frostImage(url: string): Promise<FrostImage | null> {+ let p = imageCache.get(url)+ if (p) return p+ if (imageCache.size >= 2) imageCache.delete(imageCache.keys().next().value as string)+ p = (async (): Promise<FrostImage | null> => {+ const img = new Image()+ img.src = url+ await img.decode()+ const size = frostImageSize(img.naturalWidth, img.naturalHeight)+ if (!size) return null+ const canvas = document.createElement('canvas')+ canvas.width = size.w+ canvas.height = size.h+ const ctx = canvas.getContext('2d')+ if (!ctx) return null+ ctx.drawImage(img, 0, 0, size.w, size.h)+ // WebP keeps an imported PNG's transparency; a browser that cannot encode it returns PNG.+ return { css: `url("${canvas.toDataURL('image/webp', 0.9)}")`, w: img.naturalWidth, h: img.naturalHeight }+ })().catch(() => null)+ imageCache.set(url, p)+ void p.then((v) => {+ if (v === null && imageCache.get(url) === p) imageCache.delete(url)+ })+ return p+}++/**+ * The frost's picture for the current wallpaper: `null` = no wallpaper (the frost is the canvas+ * colour), `undefined` = not ready (the live backdrop stays on meanwhile).+ */+function useFrostImage(bg: string | null, enabled: boolean): FrostImage | null | undefined {+ const url = enabled && bg ? wallpaperImageUrl(bg) : null+ const [loaded, setLoaded] = useState<{ url: string; img: FrostImage | null } | null>(null)+ useEffect(() => {+ if (!url) return+ let live = true+ void frostImage(url).then((img) => {+ if (live) setLoaded({ url, img })+ })+ return () => {+ live = false+ }+ }, [url])+ if (!enabled) return undefined+ if (!bg) return null+ if (!url) return { css: bg, w: 0, h: 0 }+ // A copy that could not be made keeps the live backdrop (undefined), never a black frost.+ return loaded?.url === url ? (loaded.img ?? undefined) : undefined+}++function GlassFrostSyncImpl(): JSX.Element | null {+ const liquidGlass = isLiquidGlass(useSettings((s) => s.settings.appTheme))+ const a11y = useGlassA11y()+ const aerial = useIsAerialWallpaper()+ const bg = useWallpaperBackground()+ const enabled = liquidGlass && !a11y.reduceTransparency && !aerial+ const image = useFrostImage(bg, enabled)+ const active = image !== undefined+ const store = useStoreApi()+ const domNode = useStore((s) => s.domNode)++ useLayoutEffect(() => {+ if (!active || !domNode) return+ const root = domNode.closest('.canvas-root') as HTMLElement | null+ if (!root) return+ let geo = { rootW: 0, rootH: 0, offX: 0, offY: 0 }+ const measure = (): void => {+ const r = root.getBoundingClientRect()+ const f = domNode.getBoundingClientRect()+ geo = { rootW: r.width, rootH: r.height, offX: f.left - r.left, offY: f.top - r.top }+ }+ const apply = (): void => {+ const [tx, ty, zoom] = store.getState().transform+ const box = frostBox({ ...geo, tx, ty, zoom, imgW: image?.w, imgH: image?.h })+ if (box) publish(frostVars(box))+ }+ measure()+ apply()+ const unsubscribe = store.subscribe((s, prev) => {+ if (s.transform !== prev.transform) apply()+ })+ const ro = new ResizeObserver(() => {+ measure()+ apply()+ })+ ro.observe(root)+ ro.observe(domNode)+ document.documentElement.dataset.ntFrost = 'on'+ return () => {+ unsubscribe()+ ro.disconnect()+ delete document.documentElement.dataset.ntFrost+ publish(null)+ }+ }, [active, domNode, store, image?.w, image?.h])++ // The picture rides ONE stylesheet rule, never a custom property: Chromium drops a var() value+ // past ~2 MB (state/wallpaper.ts), and a rule is parsed once however many nodes paint it.+ if (!active || !image) return null+ return <style>{`.term-node__frost::before{background-image:${image.css}}`}</style>+}++export const GlassFrostSync = memo(GlassFrostSyncImpl)diff --git a/src/renderer/components/GlassRefraction.tsx b/src/renderer/components/GlassRefraction.tsxindex a5c21761b..6c9ce80b6 100644--- a/src/renderer/components/GlassRefraction.tsx+++ b/src/renderer/components/GlassRefraction.tsx@@ -17,10 +17,15 @@ import { glassRefraction } from '../lib/glassContrast'*/let mapUrl: string | null = null-/** The displacement map, generated once per renderer (R = x push, G = y push, 128 = none). */+/** The displacement map, generated once per renderer (R = x push, G = y push, 128 = none).+ * 32px, not 256: the filter scales it to each surface (`preserveAspectRatio="none"`) and the lens+ * is a smooth ramp, so 32 samples draw the same picture (MEASURED at Clear over the Sonoma still:+ * mean difference 0.02/255, max 7). The bitmap's size was what the renderer paid for every frame+ * a refracting surface was drawn: 256px cost a 6-terminal canvas 10% renderer CPU per streaming+ * terminal, a 16px map nothing measurable. */function displacementMap(): string {if (mapUrl) return mapUrl- const size = 256+ const size = 32const edge = 0.12const canvas = document.createElement('canvas')canvas.width = canvas.height = sizediff --git a/src/renderer/lib/glassContrast.test.ts b/src/renderer/lib/glassContrast.test.tsindex a4af67cbc..469ac1ff9 100644--- a/src/renderer/lib/glassContrast.test.ts+++ b/src/renderer/lib/glassContrast.test.ts@@ -25,6 +25,7 @@ import {GLASS_READABLE_TICK,GLASS_TINTED_ALPHA,glassRefraction,+ glassRefractionOn,glassSliderAlpha,glassTint,resolveGlassSlider,@@ -300,6 +301,15 @@ describe('Glass slider (Clear ↔ Tinted)', () => {expect(glassRefraction(1)).toBe(0)})+ // The filter was invisible from the Readable tick to Tinted (a 3px bend under a ~20px blur, 0 at+ // Tinted) and cost as much GPU as every terminal blur together, so it runs only left of the tick.+ it('refraction runs only left of the Readable tick', () => {+ expect(glassRefractionOn(0)).toBe(true)+ expect(glassRefractionOn(GLASS_READABLE_TICK - 0.01)).toBe(true)+ expect(glassRefractionOn(GLASS_READABLE_TICK)).toBe(false)+ expect(glassRefractionOn(1)).toBe(false)+ })+it('a terminal tint follows the slider', () => {const t = TERMINAL_THEMES.find((x) => x.id === 'nodeterm-dark') ?? TERMINAL_THEMES[0]const at = (s: number) => Number(/, ([\d.]+)\)$/.exec(glassTint(t.theme, s)!.background)![1])diff --git a/src/renderer/lib/glassContrast.ts b/src/renderer/lib/glassContrast.tsindex d690ddcf4..ce7d8f49f 100644--- a/src/renderer/lib/glassContrast.ts+++ b/src/renderer/lib/glassContrast.ts@@ -476,6 +476,16 @@ export function glassRefraction(t: number): number {return GLASS_REFRACT_MAX * (1 - t)}+/** Whether the refraction filter runs at all at slider position `t`: only LEFT of the Readable+ * tick, where the blur is light enough for the bend to show. From the tick to Tinted it moved an+ * already ~20px-blurred backdrop by 3px or less (0 at Tinted), and it was the costliest part of+ * the glass: MEASURED on an M2 with one streaming terminal and six glass terminals, 74% → 42% GPU+ * without it. Its feImage source makes Chromium treat every refracting surface as damaged across+ * its whole rect, so one changing pixel re-ran the blur of the surfaces around it too. */+export function glassRefractionOn(t: number): boolean {+ return t < GLASS_READABLE_TICK+}+/** The system accessibility settings that outrank the Glass slider, like iOS. */export interface GlassA11y {/** Reduce Transparency: glass becomes opaque (and loses blur, refraction and sheen in CSS). */diff --git a/src/renderer/lib/glassFrost.test.ts b/src/renderer/lib/glassFrost.test.tsnew file mode 100644index 000000000..fa3788fa2--- /dev/null+++ b/src/renderer/lib/glassFrost.test.ts@@ -0,0 +1,73 @@+import { describe, expect, it } from 'vitest'+import { FROST_IMAGE_EDGE, frostBox, frostImageSize, frostVars, wallpaperImageUrl } from './glassFrost'++describe('frostBox', () => {+ const base = { rootW: 1300, rootH: 850, offX: 0, offY: 40, tx: 0, ty: 0, zoom: 1 }++ it('a gradient fills the root box, shifted by the pane offset and the camera', () => {+ expect(frostBox(base)).toEqual({ x: 0, y: -40, w: 1300, h: 850 })+ expect(frostBox({ ...base, tx: 100, ty: -50 })).toEqual({ x: -100, y: 10, w: 1300, h: 850 })+ })++ it('an image is placed like background-size: cover, centred', () => {+ // A 2:1 image in a 1300×850 box: height-limited, scale 850/1000 → 1700×850, overflowing 200px+ // on each side.+ const b = frostBox({ ...base, offY: 0, imgW: 2000, imgH: 1000 })!+ expect(b.w).toBeCloseTo(1700)+ expect(b.h).toBeCloseTo(850)+ expect(b.x).toBeCloseTo(-200)+ expect(b.y).toBeCloseTo(0)+ })++ it('maps into flow units: zoom divides sizes and offsets', () => {+ const b = frostBox({ ...base, tx: 200, ty: 100, zoom: 0.5 })!+ expect(b).toEqual({ x: -400, y: -280, w: 2600, h: 1700 })+ })++ // The node's on-screen pixel at flow point P is offX + tx + P·zoom; the wallpaper pixel under it+ // must be the one the frost paints at P. Checked through the published box.+ it('a flow point lands on the wallpaper pixel under it on screen', () => {+ const g = { rootW: 1470, rootH: 923, offX: 12, offY: 40, tx: -321.5, ty: 77, zoom: 0.73, imgW: 6016, imgH: 6016 }+ const b = frostBox(g)!+ const P = { x: 480, y: 220 }+ const screen = { x: g.offX + g.tx + P.x * g.zoom, y: g.offY + g.ty + P.y * g.zoom }+ const s = Math.max(g.rootW / g.imgW, g.rootH / g.imgH)+ const imgOrigin = { x: (g.rootW - g.imgW * s) / 2, y: (g.rootH - g.imgH * s) / 2 }+ const expectedUV = { u: (screen.x - imgOrigin.x) / (g.imgW * s), v: (screen.y - imgOrigin.y) / (g.imgH * s) }+ expect((P.x - b.x) / b.w).toBeCloseTo(expectedUV.u, 9)+ expect((P.y - b.y) / b.h).toBeCloseTo(expectedUV.v, 9)+ })++ it('refuses geometry it cannot place', () => {+ for (const bad of [{ zoom: 0 }, { zoom: -1 }, { zoom: Number.NaN }, { rootW: 0 }, { rootH: -5 }, { tx: Infinity }])+ expect(frostBox({ ...base, ...bad })).toBeNull()+ })++ it('a missing or broken image size falls back to the root box', () => {+ for (const img of [{ imgW: 0, imgH: 100 }, { imgW: Number.NaN, imgH: 5 }, { imgW: null, imgH: null }])+ expect(frostBox({ ...base, ...img })).toEqual({ x: 0, y: -40, w: 1300, h: 850 })+ })+})++describe('frost helpers', () => {+ it('publishes rounded unitless numbers', () => {+ expect(frostVars({ x: -12.3456, y: 0.004, w: 1300, h: 850.555 })).toEqual({+ '--frost-x': '-12.35',+ '--frost-y': '0',+ '--frost-w': '1300',+ '--frost-h': '850.56'+ })+ })++ it('downsizes the wallpaper copy to the frost edge, never up', () => {+ expect(frostImageSize(6016, 6016)).toEqual({ w: FROST_IMAGE_EDGE, h: FROST_IMAGE_EDGE })+ expect(frostImageSize(6000, 3000)).toEqual({ w: FROST_IMAGE_EDGE, h: FROST_IMAGE_EDGE / 2 })+ expect(frostImageSize(800, 600)).toEqual({ w: 800, h: 600 })+ expect(frostImageSize(0, 10)).toBeNull()+ })++ it('reads the url out of a wallpaper background, and nothing out of a gradient', () => {+ expect(wallpaperImageUrl('url("data:image/jpeg;base64,AAAA")')).toBe('data:image/jpeg;base64,AAAA')+ expect(wallpaperImageUrl('linear-gradient(165deg, #1d2b64 0%, #f4a6b8 100%)')).toBeNull()+ })+})diff --git a/src/renderer/lib/glassFrost.ts b/src/renderer/lib/glassFrost.tsnew file mode 100644index 000000000..6c324a789--- /dev/null+++ b/src/renderer/lib/glassFrost.ts@@ -0,0 +1,106 @@+/**+ * Static frost for Liquid Glass terminal nodes (performance).+ *+ * A glass terminal used to frost with a live `backdrop-filter`. Chromium re-runs a backdrop filter+ * every time the surface it belongs to is drawn, and a terminal is redrawn whenever its text+ * changes, so every streaming agent re-blurred its node (and, through damage expansion, the glass+ * around it) at frame rate. MEASURED on an M2 (six glass terminals, all streaming, Sonoma still):+ * 75% → 43% GPU with the frost below, the same as no terminal blur at all; idle costs nothing+ * either way.+ *+ * The frost is a COPY of the wallpaper behind the node, painted under the node's tint with an+ * ordinary `filter` (the same blur/saturate/contrast chain). Its content never changes while the+ * camera is still, so Chromium draws it once and reuses it; the terminal's own updates no longer+ * touch it. What it cannot show is anything else behind the node (the dot grid, an edge, another+ * node): it frosts the wallpaper only. A live aerial video cannot be copied, so an aerial keeps the+ * live backdrop.+ *+ * Alignment: the wallpaper is painted on `.canvas-root` (background-size cover, centred), which is+ * never transformed. A node lives inside React Flow's viewport (translate + scale) at its absolute+ * flow position. `frostBox` maps the wallpaper's drawn rectangle into flow coordinates once per+ * camera change (`--frost-x/y/w/h` on the flow element); each node subtracts its own position+ * (`--node-x/y`, inline). Everything is in flow units, so the node's own scale does the rest.+ */++/** How far the filtered copy extends past the node on every side, in flow px: the blur samples up+ * to ~3σ outside a pixel, and the widest terminal blur (Tinted) is σ ≈ 24px. Without the margin the+ * rim would blur into transparency instead of into the wallpaper beside the node. */+export const FROST_PAD = 80++export interface FrostGeometry {+ /** `.canvas-root`'s size (the box the wallpaper is drawn into), CSS px. */+ rootW: number+ rootH: number+ /** The React Flow element's top-left inside `.canvas-root`, CSS px. */+ offX: number+ offY: number+ /** React Flow's viewport transform. */+ tx: number+ ty: number+ zoom: number+ /** The wallpaper image's natural size; absent for a gradient, which fills the root box. */+ imgW?: number | null+ imgH?: number | null+}++/** The wallpaper's drawn rectangle, in flow coordinates. */+export interface FrostBox {+ x: number+ y: number+ w: number+ h: number+}++/**+ * Where `.canvas-root`'s wallpaper sits in flow coordinates: `background-size: cover` and+ * `background-position: center` for an image, the root box itself for a gradient. Null when the+ * geometry cannot place it (no size yet, a zero or non-finite zoom).+ */+export function frostBox(g: FrostGeometry): FrostBox | null {+ const finite = [g.rootW, g.rootH, g.offX, g.offY, g.tx, g.ty, g.zoom].every(Number.isFinite)+ if (!finite || g.rootW <= 0 || g.rootH <= 0 || g.zoom <= 0) return null+ let dw = g.rootW+ let dh = g.rootH+ let dx = 0+ let dy = 0+ const iw = g.imgW ?? 0+ const ih = g.imgH ?? 0+ if (iw > 0 && ih > 0 && Number.isFinite(iw) && Number.isFinite(ih)) {+ const s = Math.max(g.rootW / iw, g.rootH / ih)+ dw = iw * s+ dh = ih * s+ dx = (g.rootW - dw) / 2+ dy = (g.rootH - dh) / 2+ }+ return {+ x: (dx - g.offX - g.tx) / g.zoom,+ y: (dy - g.offY - g.ty) / g.zoom,+ w: dw / g.zoom,+ h: dh / g.zoom+ }+}++/** The custom properties `frostBox` publishes on the flow element (unitless; CSS multiplies). */+export function frostVars(box: FrostBox): Record<'--frost-x' | '--frost-y' | '--frost-w' | '--frost-h', string> {+ const n = (v: number): string => (Math.round(v * 100) / 100).toString()+ return { '--frost-x': n(box.x), '--frost-y': n(box.y), '--frost-w': n(box.w), '--frost-h': n(box.h) }+}++/** The longest edge of the wallpaper copy the frost paints, in image px. The frost is blurred+ * (σ ≥ 3.4 CSS px even at Clear, about 7 device px), so a copy this size draws the same picture+ * as the multi-MB original at a fraction of the texture. */+export const FROST_IMAGE_EDGE = 1280++/** The size to draw a `w`×`h` image at so its longest edge is at most `FROST_IMAGE_EDGE`. */+export function frostImageSize(w: number, h: number): { w: number; h: number } | null {+ if (!(w > 0) || !(h > 0) || !Number.isFinite(w) || !Number.isFinite(h)) return null+ const s = Math.min(1, FROST_IMAGE_EDGE / Math.max(w, h))+ return { w: Math.max(1, Math.round(w * s)), h: Math.max(1, Math.round(h * s)) }+}++/** The `url("…")` inside a `background-image` value from `useWallpaperBackground`, or null for+ * anything else (a gradient). */+export function wallpaperImageUrl(bg: string): string | null {+ const m = /^url\("([^"]*)"\)$/.exec(bg)+ return m ? m[1] : null+}diff --git a/src/renderer/nodes/TerminalNode.tsx b/src/renderer/nodes/TerminalNode.tsxindex 7020d720b..74df70fec 100644--- a/src/renderer/nodes/TerminalNode.tsx+++ b/src/renderer/nodes/TerminalNode.tsx@@ -268,6 +268,7 @@ import { useClickToFocus } from './useClickToFocus'import { reparentKeepingFocus } from './reparentKeepingFocus'import { isHidden } from '../lib/ui-visibility'import { useTerminalGlass } from '../lib/useTerminalGlass'+import { useFrostLayer } from '../canvas/GlassFrostSync'import { isLiquidGlass } from '../lib/appTheme'import { readsClaudeTranscript } from '../lib/transcriptGates'import { liveProjectJumpTarget } from '../lib/projectJump'@@ -1445,6 +1446,7 @@ export function TerminalNode({// Glass terminals (Settings → Appearance): xterm paints no background and the node supplies a// translucent tint of THIS node's effective theme (lib/useTerminalGlass.ts).const { glass, tint, vars: glassVars } = useTerminalGlass(visual.terminalTheme)+ const frostRef = useFrostLayer()// The alpha app-painted cell backgrounds follow on this node (null = not glass, stock rendering).// A ref too, because `acquireWebgl` (inside the lifecycle closure) syncs every fresh addon to it.const glassCellAlphaRef = useRef<number | null>(null)@@ -6182,6 +6184,16 @@ export function TerminalNode({onMouseEnter={() => (hoveredRef.current = true)}onMouseLeave={() => (hoveredRef.current = false)}>+ {/* Liquid Glass static frost: a filtered copy of the wallpaper behind this node, under its+ tint (canvas/GlassFrostSync.tsx). Shown only while the frost is on (styles.css). */}+ {glassOn && (+ <div+ className="term-node__frost"+ aria-hidden+ ref={frostRef}+ style={{ '--node-x': positionAbsoluteX, '--node-y': positionAbsoluteY } as React.CSSProperties}+ />+ )}{/* Paint only: the old resize box in its old place (see .nt-resize-ghost in styles.css). */}<NodeResizer isVisible={selected && !collapsed && !focused} color="#0a84ff" lineClassName="nt-resize-ghost" handleClassName="nt-resize-ghost" />{/* Invisible source handle so edges to subagent/loop nodes can attach. */}diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex a5e11487c..07f67d4d8 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -17255,7 +17255,12 @@ body.focus-mode .dock:hover {2, N9: 1.6–2.0 turned dark glass over a yellow wallpaper olive and light Clear glass pink;HIG liquid-glass › Tauri and Electron suggests about 1.2–1.5). */--glass-sat: calc(150% + 30% * max(0, 1 - var(--glass-t) / 0.7));- --glass-refract: url(#nt-refract);+ /* `--glass-refract` is NOT declared here: App.tsx sets it to `url(#nt-refract)` inline only left+ of the Readable tick (lib/glassContrast.ts `glassRefractionOn`), and every chain reads it with+ an empty fallback. From the tick to Tinted the bend was 3px or less under a ~20px blur, while+ the filter cost as much GPU as all terminal blurs together (M2, one streaming terminal among+ six glass ones: 74% → 42%): its feImage source damages a refracting surface's whole rect, so+ one changing pixel re-ran the blur of every glass surface around it. *//* `--glass-frost` (light only, below) is the backdrop squeeze of lib/glassContrast.ts: last inthe text and control chains, a colour matrix that moves no pixels. Unset in dark. *//* Canvas cards and terminal nodes frost far less toward Clear: 4px at Clear (picked by eye, the@@ -17263,18 +17268,18 @@ body.focus-mode .dock:hover {`--glass-frost` here: the cards' own squeeze (`--glass-node-squeeze`) already carries the frostfloor for their slider position, and stacking both washed them out twice. */--glass-blur: blur(calc(16px + 12px * var(--glass-t) - 12px * max(0, 1 - var(--glass-t) / 0.7)))- saturate(var(--glass-sat)) var(--glass-refract);+ saturate(var(--glass-sat)) var(--glass-refract,);/* Small controls left of the tick: the backdrop under them is DIMMED (dark theme) or brightened(light theme) as the fill thins, toward Apple's "dark dimming layer" for bright content(materials.md). 1 at the tick and right of it; `--glass-control-dim` at Clear. The fill alone(0.35) left the tab label at 1.98:1 over the Sunrise gradient. It moves backdrop pixels only. */--glass-control-dim: 0.7;--glass-control-blur: blur(calc(16px + 12px * var(--glass-t))) saturate(var(--glass-sat))- brightness(calc(1 - (1 - var(--glass-control-dim)) * max(0, 1 - var(--glass-t) / 0.7))) var(--glass-refract)+ brightness(calc(1 - (1 - var(--glass-control-dim)) * max(0, 1 - var(--glass-t) / 0.7))) var(--glass-refract,)var(--glass-frost,);/* Text surfaces never frost less than at the Readable tick (0.7), whatever the slider says. */--glass-text-blur: blur(calc(16px + 12px * max(var(--glass-t), 0.7)))- saturate(150%) var(--glass-refract) var(--glass-frost,);+ saturate(150%) var(--glass-refract,) var(--glass-frost,);/* Terminal nodes frost 15% less than the chrome (the user asked for less blur under the terminalwindows): same curve, radius × 0.85, same saturation and refraction. They also FLATTEN thebackdrop's luminance (HIG: regular glass "blurs and adjusts the luminosity"): a blurred photo@@ -17284,7 +17289,7 @@ body.focus-mode .dock:hover {at Readable, empty glass over the lake photo's snow/water edge: brightness swing 2.2:1 → 1.28:1(0.51 still left 1.53:1). */--glass-term-blur: blur(calc((16px + 12px * var(--glass-t) - 12px * max(0, 1 - var(--glass-t) / 0.7)) * 0.85))- saturate(var(--glass-sat)) contrast(calc(1 - var(--glass-t))) var(--glass-refract);+ saturate(var(--glass-sat)) contrast(calc(1 - var(--glass-t))) var(--glass-refract,);}/* Outermost chrome: fill + blur, in two groups (Phase 4 slider scope, lib/glassContrast.ts@@ -17964,6 +17969,63 @@ body.focus-mode .dock:hover {border-top-width: 1px;border-top-color: var(--glass-edge) !important;}+/* Static frost (performance — lib/glassFrost.ts, canvas/GlassFrostSync.tsx). While+ `data-nt-frost` is on, a terminal node does NOT frost with a live backdrop-filter: Chromium re-ran+ that filter every time the node was redrawn, i.e. for every line a streaming agent printed, and+ the damage spread to the glass around it (MEASURED, M2, six glass terminals streaming: 75% →+ 43% GPU). Instead `.term-node__frost` paints a COPY of the wallpaper behind the node, aligned to+ the real one by custom properties, with the same chain as an ordinary `filter`, and the tint over+ it. Nothing in it changes while the camera is still, so Chromium draws it once and reuses it.+ It frosts the wallpaper only (not the dot grid, edges or other nodes behind the node). Focus mode+ moves the node out of the canvas, so a focused node keeps the live backdrop. The frost layer is+ opaque (the wallpaper copy over the canvas colour), so nothing behind it can read sharp through+ the tint. */+.term-node__frost {+ display: none;+}+:root[data-nt-glass='on'][data-nt-frost='on'] .term-node.term-node--glass:not(.term-node--focused) {+ background: transparent;+ -webkit-backdrop-filter: none;+ backdrop-filter: none;+ /* NOT a stacking context of its own (no isolation): the frost's z-index -1 then lands in the+ React Flow wrapper's stacking context, painted BEFORE this node's border, header and body —+ the order the live backdrop and the tint had. Inside the node it painted over the 1px glass+ edge. */+}+:root[data-nt-glass='on'][data-nt-frost='on'] .term-node--glass:not(.term-node--focused) > .term-node__frost {+ display: block;+ position: absolute;+ inset: 0;+ z-index: -1;+ overflow: hidden;+ border-radius: inherit;+ pointer-events: none;+}+/* The wallpaper copy. It reaches FROST_PAD (80px) past the node so the blur at the rim samples the+ wallpaper beside the node, not transparency; the layer's own overflow clips it back. The picture+ itself is one rule GlassFrostSync renders (a data: URL can exceed what a custom property holds). */+.term-node__frost::before {+ content: '';+ position: absolute;+ inset: -80px;+ background-color: var(--canvas-bg);+ background-repeat: no-repeat;+ background-size: calc(var(--frost-w) * 1px) calc(var(--frost-h) * 1px);+ background-position: calc((var(--frost-x) - var(--node-x)) * 1px + 80px) calc((var(--frost-y) - var(--node-y)) * 1px + 80px);+ filter: var(--glass-term-blur) var(--term-glass-backdrop,);+}+/* The node's tint, over the frost — what used to be the node's own background. */+.term-node__frost::after {+ content: '';+ position: absolute;+ inset: 0;+ background: var(--term-glass-bg);+}+/* Keep blur while moving OFF: the frost drops its blur through a camera move like the live+ backdrop did, and keeps the squeeze that holds the text at 4.5:1 left of the Readable tick. */+:root[data-nt-glass='on'] .canvas-moving .term-node__frost::before {+ filter: var(--term-glass-backdrop, none);+}:root[data-nt-glass='on'] .term-node__color {background: transparent !important;box-shadow: inset 0 0 0 1.5px var(--muted);diff --git a/src/renderer/styles.glass-frost.test.ts b/src/renderer/styles.glass-frost.test.tsnew file mode 100644index 000000000..ed4e33f3f--- /dev/null+++ b/src/renderer/styles.glass-frost.test.ts@@ -0,0 +1,52 @@+import { readFileSync } from 'node:fs'+import { join } from 'node:path'+import { describe, expect, it } from 'vitest'+import { FROST_PAD } from './lib/glassFrost'++const CSS = readFileSync(join(__dirname, 'styles.css'), 'utf8').replace(/\r\n/g, '\n').replace(/\/\*[\s\S]*?\*\//g, '')++/** The declarations of the first rule whose selector list is exactly `selector`. */+function rule(selector: string): string {+ const at = CSS.indexOf(`${selector} {`)+ expect(at, selector).toBeGreaterThanOrEqual(0)+ const open = CSS.indexOf('{', at)+ return CSS.slice(open + 1, CSS.indexOf('}', open)).replace(/\s+/g, ' ')+}++// Static frost (lib/glassFrost.ts): a terminal's live backdrop-filter re-ran on every redraw of+// its text. The frost replaces it only where it can stand in for it.+describe('Liquid Glass static frost', () => {+ it('is hidden unless the frost is on', () => {+ expect(rule('.term-node__frost')).toContain('display: none')+ })++ it('switches the live backdrop off only under the frost gate, and never for a focused node', () => {+ const r = rule(":root[data-nt-glass='on'][data-nt-frost='on'] .term-node.term-node--glass:not(.term-node--focused)")+ expect(r).toMatch(/(^|; )backdrop-filter: none/)+ expect(r).toContain('background: transparent')+ // A stacking context here would paint the frost (z-index -1) over the node's own border.+ expect(r).not.toContain('isolation')+ })++ it('frosts with the very chain the live backdrop used', () => {+ const live = rule(":root[data-nt-glass='on'] .term-node")+ expect(live).toContain('backdrop-filter: var(--glass-term-blur) var(--term-glass-backdrop,)')+ expect(rule('.term-node__frost::before')).toContain('filter: var(--glass-term-blur) var(--term-glass-backdrop,)')+ })++ it('reaches FROST_PAD past the node, and aligns by the same margin', () => {+ const r = rule('.term-node__frost::before')+ expect(r).toContain(`inset: -${FROST_PAD}px`)+ expect(r.match(new RegExp(`\\* 1px \\+ ${FROST_PAD}px`, 'g'))).toHaveLength(2)+ })++ it('paints the tint over the frost, from the same token the node used', () => {+ expect(rule('.term-node__frost::after')).toContain('background: var(--term-glass-bg)')+ })++ it('drops only the blur during a camera move with Keep blur while moving off', () => {+ expect(rule(":root[data-nt-glass='on'] .canvas-moving .term-node__frost::before")).toContain(+ 'filter: var(--term-glass-backdrop, none)'+ )+ })+})diff --git a/src/renderer/styles.glass-traps.test.ts b/src/renderer/styles.glass-traps.test.tsindex 954e8e028..6f829ebc7 100644--- a/src/renderer/styles.glass-traps.test.ts+++ b/src/renderer/styles.glass-traps.test.ts@@ -39,6 +39,8 @@ const GATE = /^:root\[data-nt-glass='on'\](?:\[[^\]]*\])*\s*/const IN_FLOW: Record<string, string> = {'.kanban-modal__termwrap--glass': 'the card-modal terminal fills the blurred .kanban-modal','.term-node--glass .term-node__header': 'the header row of its own blurred glass node',+ '.term-node__frost::after':+ 'the static-frost tint: it stacks on its ::before sibling, an opaque blurred copy of the wallpaper behind the node',}interface Rule {diff --git a/src/renderer/styles.palette.test.ts b/src/renderer/styles.palette.test.tsindex b2ad76031..cd7b51740 100644--- a/src/renderer/styles.palette.test.ts+++ b/src/renderer/styles.palette.test.ts@@ -265,7 +265,15 @@ describe('terminal glass blur', () => {expect(chain.indexOf('blur(')).toBe(0)// Only the colour-matrix squeeze may follow it: it moves no pixels, so it cannot bring back the// sharp rim band a reference filter ahead of blur() caused (visual QA C1).- expect(chain.trim().replace(/ var\(--glass-frost,\)$/, '').endsWith('var(--glass-refract)')).toBe(true)+ expect(chain.trim().replace(/ var\(--glass-frost,\)$/, '').endsWith('var(--glass-refract,)')).toBe(true)+ })++ // Refraction is opt-in: App.tsx sets `--glass-refract` inline only left of the Readable tick+ // (glassRefractionOn). A stylesheet default would switch the costliest filter back on at every+ // slider position, Tinted included, where it bends nothing.+ it('the stylesheet never turns refraction on by itself', () => {+ expect(CSS).not.toMatch(/--glass-refract\s*:/)+ expect(CSS).not.toMatch(/var\(--glass-refract\)/)})it('terminal glass flattens the backdrop luminance toward Tinted, and not at Clear', () => {diff --git a/src/renderer/styles.theme.test.ts b/src/renderer/styles.theme.test.tsindex 895a87c7b..3c28d072a 100644--- a/src/renderer/styles.theme.test.ts+++ b/src/renderer/styles.theme.test.ts@@ -115,6 +115,13 @@ describe('every CSS variable resolves', () => {'--glass-node-squeeze', // App.tsx, canvas-card backdrop squeeze (glassChromeBackdropRange)'--glass-chrome-bg', // App.tsx, Liquid Glass chrome fill (lib/glassContrast.ts glassChromeAlpha)'--glass-control-bg', // App.tsx, Liquid Glass small-control fill (glassChromeAlphas)+ '--glass-refract', // App.tsx, the rim refraction, only left of the Readable tick (glassRefractionOn)+ '--frost-x', // GlassFrostSync, the wallpaper's box in flow units, written onto each frost layer+ '--frost-y',+ '--frost-w',+ '--frost-h',+ '--node-x', // TerminalNode, the node's absolute flow position (its frost layer)+ '--node-y','--glass-fill', // GlassSlider, the slider value (fills the track)'--glass-tick', // GlassSlider, the Readable tick position (the notch)'--peer-color', // presence chips, per peer