Files
punktfunk/crates
enricobuehler 3197a4e887 fix(windows/cursor): name the once-per-boot limit — /restart-device cannot clean between sessions
Measured on a freshly cold-booted .173: the start-up clean succeeded (0.07 s,
adapter clean, first session came up cursor_excluded=false and then declared),
and the between-session clean then fired correctly — gate passed,
CURSOR_DECLARED set, no session streaming — and the restart FAILED with 'Das
System muss neu gestartet werden, damit Konfigurationsvorgaenge abgeschlossen
werden'.

So /restart-device is a ONCE-PER-BOOT lever. The first call after a cold boot
works; every later one in the same boot needs a reboot first, and repeated
attempts additionally drive the devnode into 'restart pending'. The earlier
'0.07 s, so just do it whenever' measurement was true only of the first call.

That settles what this mechanism can and cannot do: it cleans the adapter at
host start-up, and nowhere else. Giving a capture session back the lossless
pointer AFTER a desktop session in the same boot needs a different way to
recycle the driver's WUDFHost process, which is where the declare lives.

Also fixes the detector, which missed this wording entirely and logged
restart_pending=false on exactly the failure it exists to name.
2026-08-08 21:10:06 +02:00
..