Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
docs(util): clarify EnsureHiddenConsole call-order contract (#2399)
Bohan Jiang02310d083e96
diff --git a/server/internal/util/proc_windows.go b/server/internal/util/proc_windows.goindex c3a2ccb8ed..607cbb0371 100644--- a/server/internal/util/proc_windows.go+++ b/server/internal/util/proc_windows.go@@ -18,6 +18,11 @@ const swHide = 0// visible to the user. Every child process (git, cmd, etc.) inherits this// hidden console automatically, so no per-call SysProcAttr gymnastics are// needed.+//+// MUST be called at daemon startup before any child process is spawned —+// the inherited hidden console only protects children started after this+// returns. A child spawned earlier will allocate its own visible console+// window and reintroduce the popup-flash regression from #2357.func EnsureHiddenConsole() {if hwnd, _, _ := procGetConsoleWnd.Call(); hwnd != 0 {return // already have a console