authorgravatar for 153842990+yashranaway@users.noreply.github.comAditya Garud <153842990+yashranaway@users.noreply.github.com> 2026-08-31 22:08:52+05:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-08-31 09:38:52-07:00
logf86c5e8c8700b76250ed1073700a5b9db47e2d57
tree254a0f5f8b837df34f1266d6af1cfae0dc22a71e
parent9b2d04317c68233782e0630464ac86d77d0686f3
signature Signed by PGP key B5690EEEBB952194

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


2 files changed, 10 insertions(+), 0 deletions(-)

apps/server/src/provider/Layers/ClaudeCapabilitiesProbe.test.ts+4
......@@ -22,6 +22,7 @@ it("isolates Claude capability probes without dropping workspace setting sources
2222 environment: {
2323 HOME: "/home/user",
2424 ENABLE_CLAUDEAI_MCP_SERVERS: "true",
25 FORCE_CODE_TERMINAL: "1",
2526 },
2627 cwd: "/workspace/project",
2728 });
......@@ -37,6 +38,9 @@ it("isolates Claude capability probes without dropping workspace setting sources
3738 assert.equal(options.abortController, abortController);
3839 assert.equal(options.env?.HOME, "/home/user");
3940 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");
4044});
4145
4246it.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: {
614614 // Connected claude.ai MCP servers are discovered outside filesystem
615615 // config; disable them independently for this health check.
616616 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",
617623 },
618624 ...(input.cwd ? { cwd: input.cwd } : {}),
619625 stderr: () => {},