Repository navigation
No console windows from the AI agent CLIs on Windows; reload the page if WebView2's renderer dies - #282
Merged
Conversation
… if WebView2's renderer dies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 insrc-tauri/cratesstarted 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 --versionand the chat process itself. All of them now getCREATE_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 checkpasses on Linux; the Windows-only code (the flag, the WebView2 constant) is compiled by the Windows build in CI.