Skip to content

No console windows from the AI agent CLIs on Windows; reload the page if WebView2's renderer dies - #282

Merged
broisnees merged 1 commit into
nightlyfrom
windows-no-console
Nov 17, 2026
Merged

broisnees merged 1 commit into
nightlyfrom
windows-no-console

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

On Windows, picking a Claude model in the AI chat flashed black cmd windows, and the app then went white.

Console windows. Stroke's own spawns all go through proc::quiet (CREATE_NO_WINDOW), but the vendored agent crates in src-tauri/crates started their CLIs plainly. A GUI process starting a console program on Windows gets a new console window each time: claude --version (on every probe), the model listing, codex debug models, opencode --version and the chat process itself. All of them now get CREATE_NO_WINDOW (agent_claude::quiet / quiet_std, no-ops off Windows).

White page. The console stealing focus is the likely trigger: the WebView2 crash the F6 guard in lib.rs already works around is a focus-change crash. Separately, the crash guard only handled the browser process exiting. When only the render process dies the window stayed white with nothing to click; it now reloads the page.

cargo check passes on Linux; the Windows-only code (the flag, the WebView2 constant) is compiled by the Windows build in CI.

@broisnees
broisnees merged commit 35006ab into nightly Nov 17, 2026
1 check passed
@broisnees
broisnees deleted the windows-no-console branch November 17, 2026 09:23
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant