Files
Peter Steinberger 5232aba003 fix(windows): recover Gateway restarts from SQLite sharing errors (#159347)
* fix(windows): recover Gateway restarts from SQLite sharing errors

Ask the verified Gateway owner to drain before Task Scheduler termination, wait for task completion, and retry transient Windows lease reads. Preserve restart activation with a warning when post-stop inspection remains unavailable and the port is free. Thanks @eddiekk for the failure traces.

* test(windows): tie stop fixtures to process termination

Route Scheduled Task probes independently of CIM observation, retain listeners until their owned process is terminated, and revoke continuation authority at the intended post-End phase. Preserve owner termination and foreign-process protection assertions.

* fix(windows): bind restart cleanup and wait for task settlement

Keep cleanup bound to captured process identities, preserve later replacements,
and wait for the Scheduled Task to settle before activation. Record recovery
when transient SQLite owner inspection remains locked after confirmed exit.

* fix(windows): preserve captured children and report refused stops

* fix(windows): recover restart after unavailable task inspection

* fix(android): regenerate gateway stop protocol method
2026-09-28 01:18:31 +00:00
..