[Bug] Console windows (conhost.exe) spam on Windows when Desktop app spawns child processes
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- electron, powershell
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Shell
- スター
- 85
- フォーク
- 5
- 平均マージ
- 2時間 46分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommandCodeAI/desktop のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
CommandCodeAI/desktop#125 · コメント 1 件 · 担当者 1 名 ·
-
[Feedback]: add copy block under a code block対応中かも @aliarain が 6 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CommandCodeAI/desktop#94 · 担当者 1 名 ·
-
[Feedback]: Add Expand & Collapse for changes対応中かも @aliarain が 6 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CommandCodeAI/desktop#66 · コメント 1 件 · リアクション 2 件 · 担当者 1 名 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
CommandCodeAI/desktop#128 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
CommandCodeAI/desktop#127 ·
CommandCodeAI/desktop の issue をすべて見る
似ている issue
-
Feature Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
project-chip/certification-tool#1154 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
beehive-lab/TornadoVM#1151 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
obra/superpowers#2433 ·
メンテナーはふだん 5 日以内に返信
-
area/release kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kubernetes-sigs/kueue#16455 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信