| author | |
| committer | |
| log | f86c5e8c8700b76250ed1073700a5b9db47e2d57 |
| tree | 254a0f5f8b837df34f1266d6af1cfae0dc22a71e |
| parent | 9b2d04317c68233782e0630464ac86d77d0686f3 |
| signature | Signed by PGP key B5690EEEBB952194 |
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 |
| 22 | 22 | environment: { |
| 23 | 23 | HOME: "/home/user", |
| 24 | 24 | ENABLE_CLAUDEAI_MCP_SERVERS: "true", |
| 25 | FORCE_CODE_TERMINAL: "1", | |
| 25 | 26 | }, |
| 26 | 27 | cwd: "/workspace/project", |
| 27 | 28 | }); |
| ... | ... | @@ -37,6 +38,9 @@ it("isolates Claude capability probes without dropping workspace setting sources |
| 37 | 38 | assert.equal(options.abortController, abortController); |
| 38 | 39 | assert.equal(options.env?.HOME, "/home/user"); |
| 39 | 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"); | |
| 40 | 44 | }); |
| 41 | 45 | |
| 42 | 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 | 614 | // Connected claude.ai MCP servers are discovered outside filesystem |
| 615 | 615 | // config; disable them independently for this health check. |
| 616 | 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", | |
| 617 | 623 | }, |
| 618 | 624 | ...(input.cwd ? { cwd: input.cwd } : {}), |
| 619 | 625 | stderr: () => {}, |