@devries-cameron20 / t3code-1 / commits / f86c5e8c87
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(server): skip IDE detection in Claude probes (#8634)

Aditya Garud committed Aug 31, 2026 at 22:08 UTC f86c5e8c8700b76250ed1073700a5b9db47e2d57
2 files changed +10
apps/server/src/provider/Layers/ClaudeCapabilitiesProbe.test.ts
+4
@@ -22,6 +22,7 @@ it("isolates Claude capability probes without dropping workspace setting sources
22 environment: {
23 HOME: "/home/user",
24 ENABLE_CLAUDEAI_MCP_SERVERS: "true",
25 + FORCE_CODE_TERMINAL: "1",
26 },
27 cwd: "/workspace/project",
28 });
@@ -37,6 +38,9 @@ it("isolates Claude capability probes without dropping workspace setting sources
38 assert.equal(options.abortController, abortController);
39 assert.equal(options.env?.HOME, "/home/user");
40 assert.equal(options.env?.ENABLE_CLAUDEAI_MCP_SERVERS, "false");
41 + assert.equal(options.env?.FORCE_CODE_TERMINAL, undefined);
42 + assert.equal(options.env?.CLAUDE_CODE_AUTO_CONNECT_IDE, "0");
43 + assert.equal(options.env?.CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL, "1");
44 });
45
46 it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => {
apps/server/src/provider/Layers/ClaudeProvider.ts
+6
@@ -614,6 +614,12 @@ export function buildClaudeCapabilitiesProbeQueryOptions(input: {
614 // Connected claude.ai MCP servers are discovered outside filesystem
615 // config; disable them independently for this health check.
616 ENABLE_CLAUDEAI_MCP_SERVERS: "false",
617 + // This is a noninteractive health check, so IDE discovery cannot add any
618 + // useful capability data. Skipping it also avoids Claude spawning a
619 + // Windows `tasklist | findstr` process tree on every periodic refresh.
620 + FORCE_CODE_TERMINAL: undefined,
621 + CLAUDE_CODE_AUTO_CONNECT_IDE: "0",
622 + CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL: "1",
623 },
624 ...(input.cwd ? { cwd: input.cwd } : {}),
625 stderr: () => {},