Skip to content

Fix daemon showing visible console window on Windows#101

Merged
georgeh0 merged 1 commit intococoindex-io:mainfrom
salmon-21:fix/windows-daemon-window
Mar 19, 2026
Merged

Fix daemon showing visible console window on Windows#101
georgeh0 merged 1 commit intococoindex-io:mainfrom
salmon-21:fix/windows-daemon-window

Conversation

@salmon-21
Copy link
Contributor

Summary

  • Use CREATE_NO_WINDOW instead of DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP when starting the daemon on Windows

Problem

The daemon process creates a visible console window on Windows 11 that stays in the taskbar. DETACHED_PROCESS detaches from the parent console but still allows a new console window to be created.

Fix

Replace the creation flags with CREATE_NO_WINDOW (0x08000000), which suppresses the console window entirely. Tested on Windows 11 Pro — daemon starts and operates normally without any visible window.

Fixes #100

🤖 Generated with Claude Code

Use CREATE_NO_WINDOW instead of DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP
when starting the daemon on Windows. DETACHED_PROCESS detaches from the
parent console but still creates a new visible console window.
CREATE_NO_WINDOW suppresses the window entirely.

Fixes cocoindex-io#100
@georgeh0
Copy link
Member

Thanks for the fix!

@georgeh0 georgeh0 merged commit 0237e87 into cocoindex-io:main Mar 19, 2026
5 checks passed
@salmon-21 salmon-21 deleted the fix/windows-daemon-window branch March 19, 2026 12:16
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.

Daemon shows a visible console window on Windows

2 participants