[Bug] Console windows (conhost.exe) spam on Windows when Desktop app spawns child processes
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 68/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- electron, powershell
- Domaine
- desktop, operating-systems
Piste de recherche
Start at the Electron child_process.spawn entry points that launch cmd.exe, powershell.exe, or rtk.exe, then reproduce the process chain on Windows 10/11. Verify that command execution no longer creates visible conhost.exe windows while the child processes still run, using Task Manager or the WMI event listener described in the report.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
GUI version
v0.1.43
Operating system
Windows
Reproduction steps
- Install and launch Command Code Desktop (version 0.1.43) on Windows 10/11.
- Leave the application running in the background (or even close it, if residual processes remain).
- Watch Task Manager or the screen: conhost.exe windows appear and disappear constantly.
- To confirm the origin, a WMI event listener (e.g. Register-WmiEvent in PowerShell) can be used to capture the process chain.
Expected behavior
Command Code Desktop should spawn child processes (such as cmd.exe, powershell.exe, rtk.exe) without displaying a console window. This is achievable by passing the CREATE_NO_WINDOW flag (0x08000000) to CreateProcess, or the equivalent windowsHide: true in Electron's child_process.spawn.
Actual behavior
Every time the application (or a residual process) executes a command, a new console window is allocated and displayed. The captured process chain is:
Command Code.exe (GUI, no console) → cmd.exe /d /s /c "powershell.exe -EncodedCommand ..." → conhost.exe (window)
This repeats dozens of times per minute.
Screenshots, recordings, or sanitized logs
commandcode-wmi-2026-09-29.log
Related: the same class of bug has been reported for Claude Code (#70200,
#64163, #35797), Codex (#48876), and Cursor. It's a known Windows-wide
pattern in GUI-hosted CLI agents.
Safety check
- I removed credentials and private project information from this report.
- Langage dominant
- Shell
- Étoiles
- 85
- Forks
- 5
- Merge moyen
- 2 h 46 min
- PR mergées (30 j)
- 1
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 3 jours. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
CommandCodeAI/desktop#125 · 1 commentaire · 1 personne assignée ·
-
[Feedback]: add copy block under a code blockPeut-être pris @aliarain l’a pris il y a 8 jours. Ouverteenhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
CommandCodeAI/desktop#94 · 1 personne assignée ·
-
[Feedback]: Add Expand & Collapse for changesPeut-être pris @aliarain l’a pris il y a 8 jours. Ouverteenhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
CommandCodeAI/desktop#66 · 1 commentaire · 2 réactions · 1 personne assignée ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 52/100
CommandCodeAI/desktop#131 · 1 commentaire ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 58/100
CommandCodeAI/desktop#130 ·
Toutes les issues de CommandCodeAI/desktop
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
adobe-fonts/source-serif#152 ·
-
area:ansible source:reader type:content-error
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
stephrobert/blog-roadmap#42 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
nolabs-ai/nono-packs#44 ·
Les mainteneurs répondent en général sous 1 jour