#1 [high] Blocking: change targets a file that no longer exists on main (flare/src/main.rs → flare-cli/src/main.rs)
PR 178 edits flare/src/main.rs (base 902c88e). Verified at main: flare/src/main.rs does not exist ("flare/src/main.rs is not a file at that commit"), flare/src/ now holds application.rs, cache_support.rs, catalog.rs, configuration.rs, controller.rs, dashboard.rs, details.rs, download_cache.rs, environment.rs, hardware.rs, hardware_monitor.rs, http_client.rs, hub.rs, identity.rs, lib.rs, options.rs, preview.rs, recommendations.rs, runtime_settings.rs, settings.rs, trust.rs, windows.rs.
The CLI moved to flare-cli/src/main.rs in fa158284 (2026-11-09, "Add a native Windows desktop backed by the shared Flare library"), confirmed by search_history path=flare/src/main.rs listing fa158284 as the newest commit touching it, and by list_files */src/main.rs at main returning only flare-cli and selene-manager.
On main the code the PR deletes still exists at flare-cli/src/main.rs:187-192 (SetConsoleCtrlHandler(Some(stop_console),1) in run(), after the Windows multi-host rejection at 178-186), and stop_console is at flare-cli/src/main.rs:736-745.
So the diff as written does not reach any code Windows runs. Must be reworked onto flare-cli/src/main.rs. Matches maintainer review item 1 (yatesdr, 2026-11-18).
#2 [high] Blocking: a naive port into serve() still misses Windows, which serves through serve_local
The PR places the registration "immediately before Server::start" inside serve(). That placement is correct for the PR's own base (at PR head, Windows single-host flows straight through serve(): main.rs:218-231 on the PR head set membership=None, cluster=None, then serve(...) at 287, and PR-head serve() has no local early return).
It is not transferable to main. flare-cli/src/main.rs:602-604: fn serve(...) begins with if cluster.is_none() { return serve_local(owner, config, progress); }. Windows rejects rank/rendezvous/hosts/roce at flare-cli/src/main.rs:178-186 and forces membership = None (line 273-274), so on Windows cluster is always None and every Windows serve goes to serve_local. The Server::start call inside serve() (main line 630-648) is never reached on Windows; the Windows Server::start is the one inside LoadedSession::start (helios/src/server/session.rs:60-69), called from serve_local at flare-cli/src/main.rs:702.
Therefore porting the hunk verbatim to main's serve() at line 628 would compile, look right, and fix nothing. The registration must go either in run()-level Windows prelude (as today, but moved later) or at the top of serve_local (before LoadedSession::new at line 698, since LoadedSession::start(self) consumes the session so nothing can be inserted directly before the inner Server::start). Worth stating explicitly in review because it is the trap that will cost the author another round.
#3 [high] Should fix: the new registration point swallows Ctrl-C during Server::start, which can last 120s per tuning graph
The PR's new placement creates a new swallow window, of the same kind it exists to remove, and the description claims otherwise ("A Ctrl-C during Server::start sets STOP, so the serving loop exits at once"). Setting STOP is not enough: nothing reads STOP until the loop at PR-head flare/src/main.rs:614.
What runs inside Server::start:
helios/src/server.rs:304blocks onready_rx.recv()until the model worker reports readiness.helios/src/server/runtime.rs:584-609: the "flare-model" thread buildsRankExecutor::newand only then sends readiness.helios/src/execution/transport.rs:435-444GraphExecutor::newruns every referenced tuning graph before returning.helios/src/execution/transport.rs:530-592run_tuning_graphpollscompleted.completed()in a 50 µs sleep loop with a 120-second deadline per graph, consulting no stop flag;report_startup(594-599) prints "Startup tuning: N graphs completed in {elapsed}s", so this is a measured phase of normal startup.
So stop_console (PR-head main.rs:644-652) returns 1 ("handled") for the whole of Server::start while the user sees nothing happen. With tuning graphs present that can be minutes of an uninterruptible-looking window — the #113 symptom relocated from "download/load" to "Start server". A second Ctrl-C also only re-stores the same flag, so even repeated presses do not force the process down.
Fix options, in increasing size: (a) register after Server::start and on registration failure mem::forget the owner/transport (the error path at PR-head main.rs:593-599 already does exactly this, so nothing new is needed); (b) keep the placement and have the tuning loop / ModelRuntime readiness poll a stop flag; (c) accept the window and say so in the docs. Note (a) is the option the PR description argues against ("a registration failure returns before replay begins, instead of dropping the package owner without a confirmed drain") — that objection is real but is answered by the existing forget-on-unconfirmed-drain pattern.
#4 [medium] Should fix: docs/windows.md:141-142 still promises Ctrl-C drains native work, and the platforms diverge inside Server::start
docs/windows.md:141-142 (at main) states: "Ctrl-C and Ctrl-Break drain native work before releasing CUDA resources." After this change that is no longer universally true on Windows: during download and loading Ctrl-C now terminates the process immediately (which is the point of the PR, and is safe — see the no-corruption note). The doc needs a sentence saying that before the server starts, Ctrl-C/Break ends the process rather than draining. Raised as item 3 of the maintainer review (yatesdr, 2026-11-18).
Related asymmetry: on Unix the handlers are installed after Server::start (PR-head flare/src/main.rs:605-609), so a Ctrl-C during Unix Server::start gets the default SIGINT disposition and terminates the process outright mid-tuning. On Windows, after this PR, the same window is silently ignored instead. So the description's claim that Windows loading now behaves "as on Unix before its handlers are installed" holds for download/load but not for the Server::start window, where the two platforms now diverge in opposite directions. Both facts belong in the doc wording.
#5 [medium] Verified non-issues: interrupted acquisition is resumable/verified; abrupt exit during load is safe; terminal-restore nit
Checked that the two consequences of making Ctrl-C terminate during acquisition/loading are benign, so these are NOT findings:
-
Interrupted download does not corrupt the cache. Partials are content-addressed and resumable by design:
flare/src/hub.rs:576-606(doc comment: "An interrupted transfer resumes from its partial file"; "A long response syncs its partial at these intervals so a crash keeps the progress"),Resume::openat flare/src/hub.rs:2771-2813 (verifies the resume prefix, rejects a shrunken one),check_cancelat flare/src/hub.rs:120 called throughout acquisition, and testa_killed_acquisition_resumes_the_partial_and_reuses_completed_files(flare/src/hub.rs:9125-9252) covers "killed mid-transfer, restart resumes from saved offset". Completed blobs are digest-verified before reuse (hub.rs:1288-1309). Abrupt exit during download is already an anticipated case. -
Abrupt exit during model loading does not leak device state: process exit tears down the CUDA context, and the PR's reason for keeping registration out of that region (no STOP reader, no drain owner yet) is sound; the authors already rely on the same property on Unix, where SIGINT/SIGTERM handlers are installed only after
Server::start(PR-headflare/src/main.rs:605-609).
Cosmetic nit (below "should fix", listed for completeness): on a terminal an abrupt Ctrl-C can leave banner/cursor escape state unrestored; stop_console does nothing about it. The project's own precedent is heliopause/src/processes_windows.rs:16-27, whose exit_cli writes b"\x1b[0m\x1b[?25h\r\n", calls crate::server::restore_terminal_for_exit() and ExitProcess(130) before dying.
No double-registration problem: SetConsoleCtrlHandler accepts multiple handlers, and the only other registration is the separate heliopause binary (processes_windows.rs:38). No test exercises the Windows console handler; cargo test --manifest-path flare-cli/Cargo.toml (.github/workflows/native-serving.yml:73) would compile it on windows-2022 but asserts nothing, so only a Windows run can settle it — which the PR says it did not do ("No Windows toolchain or GPU was available, so this was neither compiled for nor run on Windows").
Charter lines used to judge this: "Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error (#397)" and "Bring real evidence" — the PR's evidence is code review only, on code that does not exist on main.