-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
Before submitting your bug report
- I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- I'm not able to find a related conversation on GitHub discussions that reports the same bug
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Windows 11 (host) → Ubuntu 24.04 (remote via SSH)
- Continue version: v1.3.31 pre-release
- IDE version: VS Code 1.96+ with Remote-SSH extension
- Model: nvidia/nemotron-3-nano-30b-a3b via LM Studio
- Connection: VS Code Remote-SSH to Linux host
Note
Filing this for searchability — this is the SSH Remote variant of #9661 (WSL) and #10007 (WSL/Dev Container). We reproduced it while testing tool overrides over an SSH tunnel and realized the scenario wasn't documented as its own issue. PR #10391 (already merged) fixes this, so this can be closed at your convenience. Apologies for the extra triage work — just wanted a findable record for anyone hitting this specific error via SSH Remote.
Description
When VS Code on Windows connects to a Linux host via SSH Remote, run_terminal_command fails immediately:
run_terminal_command failed with the message: spawn powershell.exe ENOENT
Root cause: extensionKind: ["ui", "workspace"] runs the Continue extension on the Windows host. getShellCommand() checks process.platform, gets "win32", and returns powershell.exe — but the command should execute on the remote Linux host where powershell.exe does not exist.
To reproduce
- Open VS Code on Windows
- Connect to a Linux host via Remote-SSH
- Open a workspace on the remote host
- In Continue chat, ask the model to run any terminal command (e.g.,
pwd) - Observe:
spawn powershell.exe ENOENT
Resolution
Fixed by #10391, which generalizes Windows remote detection to all remote types (WSL, SSH, Dev Container, Codespaces, tunnels):
const isWindowsHostWithRemote =
process.platform === "win32" && !["", "local"].includes(ideInfo.remoteName);When true, the implementation delegates to ide.runCommand() instead of spawning a local shell.
Related: #9661, #10007, #8826, #10433
Log output
run_terminal_command failed with the message: spawn powershell.exe ENOENT
Metadata
Metadata
Assignees
Labels
Type
Projects
Status