[Bug]: Terminal tool on windows using `cmd.exe` instead of powershell
@aliarain 已經在處理了。
開始於 2026年10月22日。
評估
- 難度
- 4/5
- 預估耗時
- 1-2 天
- 新手友好度
- 56/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- powershell, shell
研究方向
The report identifies the terminal tool's use of cmd.exe on Windows and requests PowerShell by default, with optional shell selection. Start by locating how the desktop app launches its terminal tool and how it selects a shell on Windows. Done means the tool uses the expected shell and the reproduction command behaves as expected; the issue does not name files or tests.
由索引模型根據 Issue 內容生成。
描述
GUI version
0.1.56
Operating system
Windows
Reproduction steps
- let AI run this command:
echo "SHELL=$SHELL" - See terminal printing the string literally, including the
"
Expected behavior
Use powershell (and pwsh when possible) for terminal tool. Would be even better if user can choose which one to use (powershell/pwsh/git-bash)
Actual behavior
Terminal tool using cmd.exe
Screenshots, recordings, or sanitized logs
AI report:
## The active shell for `shell_command`: **cmd.exe**
`C:\WINDOWS\system32\cmd.exe`
**Evidence (each probe independently rules the others out):**
| Probe | Result | Meaning |
|---|---|---|
| `echo %COMSPEC%` | `C:\WINDOWS\system32\cmd.exe` | cmd-style `%VAR%` expansion; PowerShell/bash would leave it literal |
| `echo "SHELL=$SHELL"` | printed the string **literally** | no `$VAR` expansion → not bash, not PowerShell |
| `ver` | `Microsoft Windows [version 10.0.26300.9711]` | cmd's built-in banner |
| `&` / `&&` chaining | worked | cmd command separator semantics |
| `powershell` tool parent process | `C:\WINDOWS\system32\cmd.exe` | the harness spawns cmd.exe, which then invokes PowerShell |
## The other three candidates — all present, none active
- **Windows PowerShell 5.1 (Desktop)** — `C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe`, v5.1.26100.9711, CLR 4.0.30319. This is what the dedicated `powershell` tool runs (child of cmd.exe).
- **PowerShell 7 (`pwsh`)** — `C:\Users\XXX\AppData\Local\Microsoft\WindowsApps\pwsh.exe`, reports `Core 7.6.7`. Store app-execution-alias install, on PATH but not the shell in use.
- **Git Bash** — `C:\Program Files\Git\bin\bash.exe` exists (MSYS2/MINGW64, `MINGW64_NT-10.0-26300`, bash 3.6.10), but `C:\Program Files\Git\bin` is **not in PATH**, so `where bash` fails. Callable by absolute path only.
**Bottom line:** the terminal is **cmd.exe**. For richer scripting use the `powershell` tool (5.1 Desktop) or invoke `pwsh` for PowerShell 7.
Safety check
- I removed credentials and private project information from this report.
- 主要語言
- Shell
- 星號
- 104
- 分支
- 8
- 平均合併
- 2 小時 46 分鐘
- 30 天內合併 PR
- 1
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
CommandCodeAI/desktop 的其他 Issue
-
[UI Bug][macOS] Sidebar toggle is vertically misaligned with window controls可能已有人在做 @aliarain 於 26 天前認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 70/100
CommandCodeAI/desktop#125 · 1 則留言 · 已指派 1 人 ·
-
[Bug]: 桌面版对话输入框中文输入法(IME)间断性的无法激活,必须先粘贴中文才能恢复可能已有人在做 @aliarain 於 3 天前認領。 未關閉bug p1
難度 4/5 3-5 天 新手友好度 48/100
CommandCodeAI/desktop#150 · 已指派 1 人 ·
-
[Bug]: Plan review is not using the provided feedback可能已有人在做 @aliarain 於 3 天前認領。 未關閉bug p1
難度 4/5 3-5 天 新手友好度 35/100
CommandCodeAI/desktop#147 · 已指派 1 人 ·
-
[Bug]: Conversation feed stutters and bounces back while streaming (macOS, arm64 desktop)可能已有人在做 @aliarain 於 3 天前認領。 未關閉p1
難度 4/5 3-5 天 新手友好度 15/100
CommandCodeAI/desktop#146 · 2 則留言 · 1 個 reaction · 已指派 1 人 ·
-
[Bug]: Plan mode occasionally responds with normal chat text instead of creating an execution plan可能已有人在做 @aliarain 於 3 天前認領。 未關閉bug p2
難度 4/5 3-5 天 新手友好度 25/100
CommandCodeAI/desktop#145 · 已指派 1 人 ·
查看 CommandCodeAI/desktop 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 88/100
-
難度 1/5 1 小時以內 新手友好度 92/100
維護者通常 1 天內回覆
-
resource-submission validation-passed
難度 1/5 1 小時以內 新手友好度 67/100
hesreallyhim/awesome-claude-code#3264 · 1 則留言 ·
維護者通常 1 天內回覆
-
area: install bug good first issue hacktoberfest
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 3 天內回覆
-
Good first issue
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆