Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ it("isolates Claude capability probes without dropping workspace setting sources
environment: {
HOME: "/home/user",
ENABLE_CLAUDEAI_MCP_SERVERS: "true",
FORCE_CODE_TERMINAL: "1",
},
cwd: "/workspace/project",
});
Expand All @@ -37,6 +38,9 @@ it("isolates Claude capability probes without dropping workspace setting sources
assert.equal(options.abortController, abortController);
assert.equal(options.env?.HOME, "/home/user");
assert.equal(options.env?.ENABLE_CLAUDEAI_MCP_SERVERS, "false");
assert.equal(options.env?.FORCE_CODE_TERMINAL, undefined);
assert.equal(options.env?.CLAUDE_CODE_AUTO_CONNECT_IDE, "0");
assert.equal(options.env?.CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL, "1");
});

it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => {
Expand Down
6 changes: 6 additions & 0 deletions apps/server/src/provider/Layers/ClaudeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,12 @@ export function buildClaudeCapabilitiesProbeQueryOptions(input: {
// Connected claude.ai MCP servers are discovered outside filesystem
// config; disable them independently for this health check.
ENABLE_CLAUDEAI_MCP_SERVERS: "false",
// This is a noninteractive health check, so IDE discovery cannot add any
// useful capability data. Skipping it also avoids Claude spawning a
// Windows `tasklist | findstr` process tree on every periodic refresh.
FORCE_CODE_TERMINAL: undefined,
CLAUDE_CODE_AUTO_CONNECT_IDE: "0",
CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL: "1",
},
...(input.cwd ? { cwd: input.cwd } : {}),
stderr: () => {},
Expand Down
Loading