[Bug]: Terminal tool on windows using `cmd.exe` instead of powershell
@aliarain y travaille déjà.
Depuis le 22/10/2026.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 56/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- powershell, shell
- Domaine
- desktop, developer-experience
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Shell
- Étoiles
- 104
- Forks
- 8
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de CommandCodeAI/desktop
-
[UI Bug][macOS] Sidebar toggle is vertically misaligned with window controlsPeut-être pris @aliarain l’a pris il y a 27 jours. Ouvertebug p2
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
CommandCodeAI/desktop#125 · 1 commentaire · 1 personne assignée ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 32/100
CommandCodeAI/desktop#151 ·
-
[Bug]: 桌面版对话输入框中文输入法(IME)间断性的无法激活,必须先粘贴中文才能恢复Peut-être pris @aliarain l’a pris il y a 4 jours. Ouvertebug p1
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
CommandCodeAI/desktop#150 · 1 personne assignée ·
-
[Bug]: Plan review is not using the provided feedbackPeut-être pris @aliarain l’a pris il y a 4 jours. Ouvertebug p1
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
CommandCodeAI/desktop#147 · 1 personne assignée ·
-
[Bug]: Conversation feed stutters and bounces back while streaming (macOS, arm64 desktop)Peut-être pris @aliarain l’a pris il y a 4 jours. Ouvertep1
Difficulté 4/5 3-5 jours Accessibilité débutants 15/100
CommandCodeAI/desktop#146 · 2 commentaires · 1 réaction · 1 personne assignée ·
Toutes les issues de CommandCodeAI/desktop
Issues similaires
-
申请gogost/gost白名单Ouverteallows image
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
DaoCloud/public-image-mirror#46267 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
devdotfast/whiteboard#1415 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
"SFrame-internal"Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
-
bug development fixed
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100