[Bug] Console windows (conhost.exe) spam on Windows when Desktop app spawns child processes
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- electron, powershell
- Domain
- desktop, operating-systems
Research direction
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.
Written by the indexing model from the issue text.
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.
- Dominant language
- Shell
- Stars
- 85
- Forks
- 5
- Avg merge
- 2h 46m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CommandCodeAI/desktop
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
CommandCodeAI/desktop#125 · 1 comment · 1 assignee ·
-
[Feedback]: add copy block under a code blockPossibly taken @aliarain claimed this 6 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CommandCodeAI/desktop#94 · 1 assignee ·
-
[Feedback]: Add Expand & Collapse for changesPossibly taken @aliarain claimed this 6 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CommandCodeAI/desktop#66 · 1 comment · 2 reactions · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
CommandCodeAI/desktop#128 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 48/100
CommandCodeAI/desktop#127 ·
All issues in CommandCodeAI/desktop
Similar issues
-
Feature Needs Triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
project-chip/certification-tool#1154 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
beehive-lab/TornadoVM#1151 ·
Maintainers usually reply within 1 day
-
component/tests
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NVIDIA/nodewright#735 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
obra/superpowers#2433 ·
Maintainers usually reply within 5 days