The best way to control Claude Code, Codex and more from any computer or phone
fix(server): Claude's commands no longer run Electron apps as Node (#29413)
u9g committed
Nov 3, 2026 at 15:13 UTC
6016aac5c23b34f7d73833f4332b5de16cc03aac
2 files changed
+5
-1
apps/server/src/provider/Drivers/ClaudeHome.test.ts
+2
-1
@@ -60,7 +60,7 @@ it.layer(NodeServices.layer)("ClaudeHome", (it) => {
60
});
61
62
it.effect(
63
- "drops the launching Claude session and labels processes t3-code unless overridden",
63
+ "drops the launching Claude session and Electron's run-as-Node flag, and labels processes t3-code unless overridden",
64
() =>
65
Effect.gen(function* () {
66
const fileSystem = yield* FileSystem.FileSystem;
@@ -72,6 +72,7 @@ it.layer(NodeServices.layer)("ClaudeHome", (it) => {
72
CLAUDE_CODE_SESSION_ID: "host-session",
73
CLAUDE_CODE_MESSAGING_SOCKET: "/tmp/host-claude.sock",
74
CLAUDE_EFFORT: "high",
75
+ ELECTRON_RUN_AS_NODE: "1",
76
KEEP: "1",
77
};
78
const instance = [
apps/server/src/provider/Drivers/ClaudeHome.ts
+3
@@ -76,6 +76,9 @@ export const mergeClaudeProcessEnvironment = Effect.fn("mergeClaudeProcessEnviro
76
CLAUDE_CODE_ENTRYPOINT: "t3-code",
77
};
78
for (const name of CLAUDE_HOST_SESSION_VARIABLES) delete baseEnvironment[name];
79
+ // The desktop runs the server as Node through Electron. Commands Claude runs inherit its env, so
80
+ // an Electron app they start (T3 Code itself, VS Code) would run as Node and exit.
81
+ delete baseEnvironment.ELECTRON_RUN_AS_NODE;
82
const environment = yield* mergeProviderInstanceEnvironment(instanceEnvironment, baseEnvironment);
83
const settingsEntrypoint = (yield* readClaudeSettingsEnv(config, undefined, environment))
84
.CLAUDE_CODE_ENTRYPOINT;