From 3e8a1cf94285c81236b97675e680704e83ab9b34 Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Wed, 26 Aug 2026 23:07:25 -0600 Subject: [PATCH] build(windows): GUI subsystem so no console opens beside the app windows_subsystem was declared nowhere, so the app carried a console window on Windows. The file logger is unaffected; only the inherited stdio console goes. The offscreen smoke gate has not run against this yet. If smoke.log comes back empty the fix is AttachConsole(ATTACH_PARENT_PROCESS) behind cfg(windows), not reverting this; there is a note at the attribute saying so. cc --- crates/qbz-qt/src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/qbz-qt/src/main.rs b/crates/qbz-qt/src/main.rs index cf2f0a88b..cbe2f7f85 100644 --- a/crates/qbz-qt/src/main.rs +++ b/crates/qbz-qt/src/main.rs @@ -1,3 +1,9 @@ +// No console window beside the GUI on Windows (W4). The file logger +// (`qbz_log::install`) is unaffected; only the inherited stdio console goes. +// If the offscreen smoke ever comes back with an empty log because of this, +// the fix is AttachConsole(ATTACH_PARENT_PROCESS), not reverting this. +#![cfg_attr(windows, windows_subsystem = "windows")] + //! qbz-qt — Qt/QML frontend POC entry point. //! //! Phase 1: boot flow (splash -> silent session restore -> shell