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(canvas): write the NUL sentinel as an escape, not a literal byte

enes5c5e3105dc66
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index 84e1df22e..12e66d945 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -2218,11 +2218,11 @@ export function Canvas() {
// projects array is rebuilt on every node serialization, the id set is not. Closed-but-kept
// projects keep their entries on purpose: closing detaches like a project switch, and the
// memory saver reaps their pages on its own clock.
- const projectIdsSig = useProjects((s) => s.projects.map((p) => p.id).join(''))
+ const projectIdsSig = useProjects((s) => s.projects.map((p) => p.id).join('\0'))
useEffect(() => {
useWebviewKeepAlive
.getState()
- .prune(new Set(projectIdsSig === '' ? [] : projectIdsSig.split('')))
+ .prune(new Set(projectIdsSig === '' ? [] : projectIdsSig.split('\0')))
}, [projectIdsSig])
/**