File tree Expand file tree Collapse file tree
apps/server/src/provider/Layers Expand file tree Collapse file tree Original file line number Diff line number Diff 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
4245it . layer ( NodeServices . layer ) ( "Claude capability probe SDK boundary" , ( it ) => {
Original file line number Diff line number Diff 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 : ( ) => { } ,
You can’t perform that action at this time.
0 commit comments