fix(windows): repair legacy gateway fallback updates#101213
Merged
Merged
Conversation
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Contributor
Author
|
Land-ready proof for current head
Known proof gaps: none for the changed Windows/update surfaces. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 7, 2026
* fix(windows): repair doctor update fallback migration * fix(windows): remove hidden startup fallback launchers * fix(windows): preserve recovered gateway tokens * fix(windows): harden update fallback migration Co-authored-by: Vincent Koc <[email protected]> * fix(windows): capture fallback runtime before task rewrite Co-authored-by: Vincent Koc <[email protected]> * fix(windows): complete legacy update restart handoff Co-authored-by: Vincent Koc <[email protected]> * fix(windows): verify fallback ownership during migration Co-authored-by: Vincent Koc <[email protected]> * fix(windows): honor update restart policy during repair * fix(windows): wait for task takeover evidence * fix(windows): preserve fallback after direct task launch * fix(windows): preserve repaired task identity * fix(windows): snapshot gateway before repair * fix: scope update service repair ownership * style: satisfy update lint checks * fix: restart gateways stopped during updates * fix(windows): enforce fallback process takeover * fix(windows): prove fallback ownership during takeover * fix(windows): verify process exit during takeover * fix(windows): wait through fallback reloads * fix(windows): harden fallback takeover ownership * fix(windows): type takeover preflight inputs * fix(windows): recognize booting replacement task Co-authored-by: Vincent Koc <[email protected]> * chore: leave changelog release-owned --------- Co-authored-by: Vincent Koc <[email protected]>
giodl73-repo
pushed a commit
to giodl73-repo/openclaw
that referenced
this pull request
Jul 8, 2026
* fix(windows): repair doctor update fallback migration * fix(windows): remove hidden startup fallback launchers * fix(windows): preserve recovered gateway tokens * fix(windows): harden update fallback migration Co-authored-by: Vincent Koc <[email protected]> * fix(windows): capture fallback runtime before task rewrite Co-authored-by: Vincent Koc <[email protected]> * fix(windows): complete legacy update restart handoff Co-authored-by: Vincent Koc <[email protected]> * fix(windows): verify fallback ownership during migration Co-authored-by: Vincent Koc <[email protected]> * fix(windows): honor update restart policy during repair * fix(windows): wait for task takeover evidence * fix(windows): preserve fallback after direct task launch * fix(windows): preserve repaired task identity * fix(windows): snapshot gateway before repair * fix: scope update service repair ownership * style: satisfy update lint checks * fix: restart gateways stopped during updates * fix(windows): enforce fallback process takeover * fix(windows): prove fallback ownership during takeover * fix(windows): verify process exit during takeover * fix(windows): wait through fallback reloads * fix(windows): harden fallback takeover ownership * fix(windows): type takeover preflight inputs * fix(windows): recognize booting replacement task Co-authored-by: Vincent Koc <[email protected]> * chore: leave changelog release-owned --------- Co-authored-by: Vincent Koc <[email protected]>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Problem This Solves
Windows gateways that fell back to a Startup-folder launcher can remain on that legacy path across
openclaw update. When the configured gateway port or service command changes, the updater can leave the old process alive, rewrite the task around it, or remove the fallback before the replacement Scheduled Task is actually running.Fixes #87156.
Supersedes #88311; this maintainer branch preserves and extends @vincentkoc's original work because that branch does not allow maintainer edits.
Why This Change Was Made
User Impact
On Windows, doctor-driven updates migrate owned Startup-folder gateway fallbacks to Task Scheduler without losing auth or leaving the old gateway on a stale port. Fallback launchers are removed only after the replacement task has concrete running evidence; failed takeover restores the prior fallback.
Evidence
Current head:
8c685fdcd1fe69b3d8b7200edcd2d8e4f65d9f4fpnpm check:changed: passed core production/test typechecks, full core lint, changelog checks, import-cycle and repository guards.01020960a7cdd3b4345f2c36afe7ca4c1647a12band exercised a live legacy Startup fallback throughdoctor --fix. The current head differs only by removing a release-owned changelog line; runtime and tests are byte-identical:pre_doctor_fallback_running=oknative_windows_doctor_update_repair=oktoken_preserved_without_disclosure=okold_fallback_port_released=okfallback_removed_after_scheduler_evidence=ok