continue-custom/core/tools/implementations
shanevcantwell c79e6489a7
fix: restrict terminal childProcess.spawn to local-only environments (#10538)
fix: restrict childProcess.spawn to local-only environments

childProcess.spawn executes on the extension host machine. With
extensionKind: ["ui", "workspace"], the extension host almost always
runs locally. For any remote workspace (SSH, WSL, Dev Container,
Codespaces, tunnel), spawning locally either runs commands on the wrong
machine or fails with ENOENT when the local shell doesn't exist in the
extension host context.

Replace ENABLED_FOR_REMOTES (which listed all remote types) with
LOCAL_ONLY (just "" and "local"). All remote types now fall through to
ide.runCommand() which delegates to VS Code's integrated terminal and
executes in the correct remote environment.

The isWindowsHostWithRemote guard is removed as it is now redundant —
the platform-agnostic check handles all cases.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 20:33:04 -07:00
..
codebaseTool.ts feat: more thorough tool arg checking utils with tests 2025-07-21 15:31:52 +02:00
createNewFile.ts fix: add security check to createNewFile tool (CWE-22) (#11238) 2026-03-09 12:27:47 -07:00
createRuleBlock.test.ts update tests and remove debugger 2025-07-02 16:06:18 -07:00
createRuleBlock.ts feat: more thorough tool arg checking utils with tests 2025-07-21 15:31:52 +02:00
fetchUrlContent.ts fix: grep escaped chars and empty results (#7323) 2025-08-25 07:20:26 -07:00
fetchUrlContent.vitest.ts Update fetchUrlContent.vitest.ts 2025-10-17 10:18:30 -07:00
globSearch.ts fix: grep escaped chars and empty results (#7323) 2025-08-25 07:20:26 -07:00
grepSearch.ts prettier 2025-10-14 15:48:35 -07:00
index.ts fix type errors 2024-11-22 22:08:58 -08:00
lsTool.ts fix: preserve leading dot in ls tool path resolution (#10515) 2026-03-10 00:08:14 -07:00
lsTool.vitest.ts fix: preserve leading dot in ls tool path resolution (#10515) 2026-03-10 00:08:14 -07:00
readCurrentlyOpenFile.ts fix: install core dependencies for cli 2025-08-21 15:43:35 -07:00
readFile.ts Merge main branch and resolve conflicts 2025-10-16 16:00:29 -07:00
readFileLimit.ts use specific ConitnueError for tool calls 2025-10-14 14:55:00 -07:00
readFileRange.integration.vitest.ts Fix readFileRange Kotlin Int overflow in IntelliJ plugin (#8976) 2025-12-05 12:13:39 -08:00
readFileRange.ts Fix readFileRange Kotlin Int overflow in IntelliJ plugin (#8976) 2025-12-05 12:13:39 -08:00
readFileRange.vitest.ts fix: 🎨 Prettier and Linting 2025-08-27 22:27:15 -07:00
readSkill.ts support relative path for workspace dirs 2026-01-15 19:00:09 +05:30
requestRule.ts prettier 2025-10-14 15:48:35 -07:00
resolveWorkingDirectory.vitest.ts style: fix prettier formatting 2025-12-26 06:27:00 -07:00
runTerminalCommand.timeout.vitest.ts fix: add default timeout for terminal command tool execution (#10550) 2026-03-24 11:04:28 -07:00
runTerminalCommand.ts fix: restrict terminal childProcess.spawn to local-only environments (#10538) 2026-03-24 20:33:04 -07:00
runTerminalCommand.vitest.ts fix: restrict terminal childProcess.spawn to local-only environments (#10538) 2026-03-24 20:33:04 -07:00
searchWeb.ts fix: grep escaped chars and empty results (#7323) 2025-08-25 07:20:26 -07:00
searchWeb.vitest.ts fix: grep escaped chars and empty results (#7323) 2025-08-25 07:20:26 -07:00
viewDiff.ts feat: empty diff tool result message 2025-09-10 19:26:50 -07:00
viewDiff.vitest.ts fix: grep escaped chars and empty results (#7323) 2025-08-25 07:20:26 -07:00
viewRepoMap.ts switch repo map tool to show signatures 2025-02-04 17:26:56 -08:00
viewSubdirectory.ts update subdirectory logic 2025-10-17 10:25:37 -07:00
viewSubdirectory.vitest.ts fix tests 2025-10-17 11:21:55 -07:00