Before submitting your bug report
Relevant environment info
- OS: Windows 10
- Continue version: 1.2.22
- IDE version: VSCode 1.99
- Model: Claude Sonnet 3.6 (Anthropic provider via internal API gateway)
- config:
name: Local Config
version: 1.0.0
schema: v1
models:
- name: Claude sonnet-4-6
provider: anthropic
model: claude-sonnet-4-6
apiBase: https://internal-apigw-kr.hmg-corp.io/hchat-in/api/v3/claude
---
4. Description
Description
run_terminal_command tool fails in Agent mode with the following error:
run_terminal_command failed with the message: spawn UNKNOWN
All other tools (file edit, search, etc.) work correctly in Agent mode.
Only run_terminal_command is affected.
PowerShell is unavailable due to corporate security policy.
Command Prompt (cmd.exe) is the only available terminal profile.
Suspected cause: Continue may be attempting to spawn a child process via
Node.js child_process.spawn directly instead of using the VS Code Terminal API,
which appears to be incompatible with CMD-only environments.
To reproduce
- Set VS Code default terminal profile to Command Prompt (cmd.exe)
- Add the following to settings.json:
"continue.terminalProfile": "Command Prompt"
- Open Continue in VS Code and switch to Agent mode
- Open a terminal session in VS Code (cmd.exe)
- Ask the agent to run any terminal command
(e.g. "Run echo %USERNAME% in the terminal")
- Observe the error:
"run_terminal_command failed with the message: spawn UNKNOWN"
Log output
No log files found.
The logs directory does not exist under %USERPROFILE%\.continue\
Before submitting your bug report
Relevant environment info
Description
run_terminal_command tool fails in Agent mode with the following error:
All other tools (file edit, search, etc.) work correctly in Agent mode.
Only run_terminal_command is affected.
PowerShell is unavailable due to corporate security policy.
Command Prompt (cmd.exe) is the only available terminal profile.
Suspected cause: Continue may be attempting to spawn a child process via
Node.js child_process.spawn directly instead of using the VS Code Terminal API,
which appears to be incompatible with CMD-only environments.
To reproduce
"continue.terminalProfile": "Command Prompt"
(e.g. "Run echo %USERNAME% in the terminal")
"run_terminal_command failed with the message: spawn UNKNOWN"
Log output
No log files found. The logs directory does not exist under %USERPROFILE%\.continue\