Skip to content

Stop plugin exec flashing a console window on Windows - #17

Merged
wess merged 1 commit into
mainfrom
windows-console-flash
Aug 4, 2026
Merged

Stop plugin exec flashing a console window on Windows#17
wess merged 1 commit into
mainfrom
windows-console-flash

Conversation

@wess

@wess wess commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Sinclair is a GUI app, so a console program it spawns pops a console window for as long as it runs. Every exec from a plugin does that — a git panel refreshing on a timer would flicker a console each time — and so does the curl behind fetch, and the taskkill that ends a timed-out program. All three now pass CREATE_NO_WINDOW; no-op off Windows.

Why this is a PR rather than a push to main. The #[cfg(windows)] branch cannot be verified on the macOS dev host: cargo check --target x86_64-pc-windows-msvc dies in the C build scripts (zstd-sys, psm) before it type-checks any Rust, so a typo there would sail through locally and only surface as a failed build-windows at release time — which is exactly how 1.32.0 shipped without Windows artifacts. windows.yml runs on pull_request for crates/**, so this is the gate that can actually see it.

Sinclair is a GUI app, so a console program it spawns pops a console
window for as long as it runs. Every `exec` from a plugin does that - a
git panel refreshing on a timer would flicker a console at you each time -
and so does the curl behind `fetch`, and the taskkill that ends a timed-out
program.

All three now pass CREATE_NO_WINDOW. No-op off Windows, where the question
does not arise.

Also drops the `plugins\notes` staging from the Windows packaging that
1.32.1 fixed, and its matching MSI component, so the comment above the
script no longer describes files that stopped existing.
@wess
wess merged commit cb8fb80 into main Aug 4, 2026
4 checks passed
@wess
wess deleted the windows-console-flash branch August 4, 2026 21:32
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.

1 participant