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(wallpaper): read the data: URL through one descriptor; round glass glows
Enes Kirca0aca1f92e8cd
diff --git a/src/core/wallpaper.ts b/src/core/wallpaper.tsindex d5af840c6..38f7e8780 100644--- a/src/core/wallpaper.ts+++ b/src/core/wallpaper.ts@@ -1,6 +1,6 @@import { execFile } from 'node:child_process'import { createHash } from 'node:crypto'-import { copyFile, mkdir, readdir, readFile, stat, unlink } from 'node:fs/promises'+import { copyFile, mkdir, open, readdir, stat, unlink } from 'node:fs/promises'import path from 'node:path'import { promisify } from 'node:util'import { IPC } from '../shared/ipc'@@ -162,15 +162,23 @@ function stills(): Promise<ScannedStill[]> {return stillScan}+/**+ * The size check and the read go through ONE open descriptor, so the file measured is the file+ * read: a stat-then-readFile pair could be handed a different (larger) file between the two.+ */async function toDataUrl(file: string): Promise<string | null> {+ let fhtry {- const st = await stat(file)- if (st.size > MAX_LOAD_BYTES) return null+ fh = await open(file, 'r')+ const st = await fh.stat()+ if (!st.isFile() || st.size > MAX_LOAD_BYTES) return nullconst ext = path.extname(file).slice(1).toLowerCase()const mime = ext === 'png' ? 'image/png' : ext === 'webp' ? 'image/webp' : 'image/jpeg'- return `data:${mime};base64,${(await readFile(file)).toString('base64')}`+ return `data:${mime};base64,${(await fh.readFile()).toString('base64')}`} catch {return null+ } finally {+ await fh?.close().catch(() => {})}}diff --git a/src/renderer/styles.css b/src/renderer/styles.cssindex 5efdbe6b3..e30fe13a7 100644--- a/src/renderer/styles.css+++ b/src/renderer/styles.css@@ -1746,6 +1746,12 @@ body,animation-play-state: paused;}+/* A glass node is rounder (14px) than the 10px the status glows above are drawn at, so the ring+ would sit off the corners. Declared after them: same specificity, later wins. */+.react-flow__node:has(.term-node.term-node--glass)::after {+ border-radius: 14px;+}+/* Bridge link handles (Claude nodes): dots on the header row, on top of the node so they'renever buried under the terminal body. Subtle until you hover the node, then prominent.Never set `transform` on a React Flow handle: the side classes (.react-flow__handle-left/right/