The best way to control Claude Code, Codex and more from any computer or phone
run backend as node
Julius Marminge committed
Feb 13, 2026 at 00:19 UTC
4fff00c8c3bed8864530d31617fb45e4788b9d83
1 file changed
+6
-1
apps/desktop/src/main.ts
+6
-1
@@ -83,7 +83,12 @@ function startBackend(): void {
83
84
const child = spawn(process.execPath, [BACKEND_ENTRY], {
85
cwd: ROOT_DIR,
86
- env: backendEnv(),
86
+ // In Electron main, process.execPath points to the Electron binary.
87
+ // Run the child in Node mode so this backend process does not become a GUI app instance.
88
+ env: {
89
+ ...backendEnv(),
90
+ ELECTRON_RUN_AS_NODE: "1",
91
+ },
92
stdio: "inherit",
93
});
94
backendProcess = child;