Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: accept Windows tool paths in Code Animation execution settings (#9388)

[._.]/ Adam Eivyb8c4953769c7
diff --git a/server/services/codeAnimation/execution.js b/server/services/codeAnimation/execution.js
index fcb233aa5b..acbf3df914 100644
--- a/server/services/codeAnimation/execution.js
+++ b/server/services/codeAnimation/execution.js
@@ -21,7 +21,9 @@ import { currentContainmentMechanism, runContainedWorker } from './containedWork
const SETTINGS_KEY = 'codeAnimationExecution';
const WORKSPACE_DIR = 'code-animation-workspaces';
-const UNSAFE_PATH = /["\\()\0\r\n]/;
+// Characters that could break out of a Seatbelt string literal. Backslash is
+// the Windows separator; Windows has no worker mechanism, so it only matters on POSIX.
+const UNSAFE_PATH = process.platform === 'win32' ? /["()\0\r\n]/ : /["\\()\0\r\n]/;
// The browser lane reuses the HTML-composition renderer sandbox unchanged.
const BROWSER_LANE = {