Skip to content

fix(windows): hide the console windows of spawned child processes - #1448

Open
mlandolfi90 wants to merge 1 commit into
DeusData:mainfrom
mlandolfi90:fix/hide-daemon-child-windows
Open

fix(windows): hide the console windows of spawned child processes#1448
mlandolfi90 wants to merge 1 commit into
DeusData:mainfrom
mlandolfi90:fix/hide-daemon-child-windows

Conversation

@mlandolfi90

Copy link
Copy Markdown

Two CreateProcessW call sites in src/foundation/ spawn children without CREATE_NO_WINDOW, so on Windows each one flashes a console window:

  • cbm_subprocess_spawn_win (src/foundation/subprocess.c) — the supervisor → index-worker spawn.
  • cbm_popen_isolated (src/foundation/compat_fs.c).

src/daemon/bootstrap.c already passes the flag for the daemon self-spawn, so this brings the remaining two in line with it.

User-visible effect: when the MCP server is driven by an editor/agent over stdio, indexing a repository pops console windows onto the desktop — one per worker spawn. Nothing breaks, but on a machine that reindexes on file changes it is a steady stream of windows stealing focus.

CREATE_NO_WINDOW only suppresses console allocation; it does not detach the process, change the process group, or affect the inherited handle list, so the existing EXTENDED_STARTUPINFO_PRESENT | CREATE_SUSPENDED | CREATE_NEW_PROCESS_GROUP semantics and the worker-log handle plumbing are untouched.

🤖 Generated with Claude Code

@mlandolfi90
mlandolfi90 requested a review from DeusData as a code owner August 4, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant