Skip to content

Commit 8b8f1de

Browse files
committed
fix(server): skip IDE detection in Claude probes
1 parent 053affb commit 8b8f1de

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎apps/server/src/provider/Layers/ClaudeCapabilitiesProbe.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ it("isolates Claude capability probes without dropping workspace setting sources
3737
assert.equal(options.abortController, abortController);
3838
assert.equal(options.env?.HOME, "/home/user");
3939
assert.equal(options.env?.ENABLE_CLAUDEAI_MCP_SERVERS, "false");
40+
assert.equal(options.env?.FORCE_CODE_TERMINAL, "1");
41+
assert.equal(options.env?.CLAUDE_CODE_AUTO_CONNECT_IDE, "0");
42+
assert.equal(options.env?.CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL, "1");
4043
});
4144

4245
it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => {

‎apps/server/src/provider/Layers/ClaudeProvider.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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: "1",
621+
CLAUDE_CODE_AUTO_CONNECT_IDE: "0",
622+
CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL: "1",
617623
},
618624
...(input.cwd ? { cwd: input.cwd } : {}),
619625
stderr: () => {},

0 commit comments

Comments
 (0)