Repository navigation
docs: run update repair with the Gateway stopped after a manual install - #204151
Merged
Merged
Conversation
When a blocked updater forces a manual installation hop so a newer CLI can run `openclaw update repair`, the docs ended the hop by refreshing and starting the Gateway. While recovering an interrupted update handoff, repair's descendant census counts OpenClaw processes whose ancestry started before the handoff's last activity plus its grace, so a Gateway started right after the hop keeps repair refusing with "Handoff descendants remain alive or unverified". Document running that repair right after `openclaw doctor --fix` with the Gateway still stopped, or stopping it first, and starting it afterwards. Source behavior is unchanged in 2026.11.6 and main. Refs #202925
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
steipete
enabled auto-merge (squash)
November 23, 2026 16:39
tideclaw-bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
…tate database (#203578) * fix(update): refuse migrating updates while a node service keeps the state open Refs #203457 * docs(update): explain the node-service migration refusal Refs #203457 * fix(update): match the node service's own state directory by filesystem identity A default node service omits the state selector and must not inherit the updater's; path aliases name one directory. Refs #203457 * fix(update): refuse every activation while a node service keeps the state open Update Doctor takes native exclusion of openclaw.sqlite on every activation, including patch updates without a schema change (#203457 reported 2026.11.5 -> 2026.11.6, both schema 36). Refuse whenever a running, kind-marked node service resolves to the same state directory, not only for pending migrations. Refs #203457 Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit 19fcba1) Release adaptation: retain stable captureUpdateActivationSchemas destructuring and check node ownership only before first mutation, so Git revalidation after mutation does not report a pre-mutation refusal. Keep stable preparatory staging and check before any Gateway stop or installed activation. Release adaptation: keep only the node-service docs and regression in the conflict regions; the separate Gateway migration admission (#203170) is not a prerequisite and remains outside the lane. Companion audit: no later PR or SHA mentions through 665c286. #203497 (future package preparation) is not needed; the existing stable package/Git activation hooks already share the pre-stop boundary. #203981 is selected elsewhere and already present at lane base (f6ad5b5). Later #204275, #204253, #204224, #204127, #204094, #204095, #204151, #204054, #203994, #203990, #203917, #203959, #203926, #203925, #203915, #203914, #202934 and #203735 are not applicable as companions: independent Git, rollback, Doctor/recovery, plugin, output, docs and host changes do not supply or consume node-service admission. Validation: two same-state activation cases red on f6ad5b5 (wrongly reached mutation), three controls passed; all 73 tests in update-command-execution.test.ts passed with the fix. Co-authored-by: RomneyDa <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 24, 2026
…04151) When a blocked updater forces a manual installation hop so a newer CLI can run `openclaw update repair`, the docs ended the hop by refreshing and starting the Gateway. While recovering an interrupted update handoff, repair's descendant census counts OpenClaw processes whose ancestry started before the handoff's last activity plus its grace, so a Gateway started right after the hop keeps repair refusing with "Handoff descendants remain alive or unverified". Document running that repair right after `openclaw doctor --fix` with the Gateway still stopped, or stopping it first, and starting it afterwards. Source behavior is unchanged in 2026.11.6 and main. Refs openclaw#202925
tideclaw-bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
…ate acts on it (#201668) * fix(update): verify recorded data-at-risk marks before repair acts on them * fix(update): verify any unverified data-at-risk mark and honor receipts in handoff recovery * fix(update): recognize a Git release-mode service as its checkout's own * fix(update): check a recorded data-at-risk mark before the next update, including already-current runs * fix(update): lead data-at-risk refusals with triage and record them on the refused run * fix(update): keep data-at-risk refusals within the recorded warning limit * test(e2e): finish the seeded data-at-risk run with a terminal phase * fix(update): name the agent route in killed-update recovery refusals * fix(update): drop an unused import * test(update): expect the agent route in killed-update refusals * fix(update): verify the newest mark before restoration without comparing run ids * fix(update): address review: keep the Gateway down on any inconsistent mark, resolve all marks, harden release ownership * fix(update): break the admission-root import cycle and type the e2e schema read * fix(update): address rating findings: agent rollback leftovers, helper restart, blocking findings first, shared Git metadata * test(e2e): prove the next plain update resolves a mark with the Gateway running * fix(update): address rating round 2: refuse marks before Doctor, registry-based rollback check, handoff fallback, async history read * test(update): pick the repair run, not a settlement row, in the data-at-risk cell * fix(update): resolve live-writer marks after Doctor holds the state * fix(doctor): say a skipped stale-Gateway stop left the PID running * fix(update): address rating round 3: leftovers before deferrals, retained rollback files, refusal after Doctor fails finalization * docs(update): note retained rollback files and refusals after Doctor * fix(doctor): say a stale Gateway stop could not be confirmed when nothing shows it running * fix(update): address landing review: revert release-mode ownership, check leftovers first, handoff entry guard, durable rollback evidence * test(update): follow main's Git release link layout in the launcher refusal test * fix(update): treat uninspectable leftovers and unreadable databases as unchecked; true wording after Doctor Release adaptation: Retain the stable installed-recovery harness. Do not add main's installed Docker service cell, later retired by #203808, or Git release-launcher wording/test because stable uses the in-place Git updater. Keep the state-verification, next-update, repair and interrupted-handoff paths and their compatible regressions. Companion audit: #203486 is present-equivalent at 3081077 (preserved). #201978 is selected next in this lane. #203808 and #203966 involve the inapplicable installed service-cell layout; #203497 and #203194 change main's package/Git activation layout and are not applicable; #204017 depends on that release-install layout. #204077, #204043, #203555 and #203520 are independent authority, cleanup, helper-fixture and config-validation changes. #204151, #203917, #203849 and #203406 are separate guidance, cleanup or status changes, not required by the data-risk verifier. #203569 fixes a separate cron receipt fixture in the same Doctor suite; the touched stale-stop cases do not depend on it. (cherry picked from commit a28f211) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f8d4bc138ed2512c413cf96f66fe0eefb3b28d65)
tideclaw-bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
…01978) * fix(update): copy original state only at the first state change * docs(update): say when the original-state capture is taken * fix(update): copy before a Gateway handoff, legacy config repair, or a fresh post-core process * test(update): expect the copy before a fresh post-core process * test(update): prove real Git and release updates copy at their mutation hook * fix(update): copy after the last pre-stop refusal and before writing a changed channel * test(update): a refused update copies nothing; sort run ids with a comparator * fix(update): copy before plugin records publish, outside the update deadline, and only once a handoff is certain * fix(update): copy before the combined plugin index write, every channel write and a fresh post-core launch, outside every update clock * fix(update): let the lazy capture follow this run's prepared package publication * test(update): drive the Git no-op capture case through the release runner * style(test): sort merged imports Release adaptation: Keep stable’s in-place Git runner and its existing service and rollback paths. Route the Git no-op fixture through updateGitCheckout and retain the before-mutation capture assertions. Omit the prepared Git release branch and its release-link-only tests. Merge the Doctor and fresh-handoff timing checks alongside the stable-only handoff coverage. Stable arms the executor clock before already-current package maintenance; keep both its timer and its synchronous fence/SQLite deadline checks paused during separately bounded capture. Exercise a live fence assertion after the original activation deadline elapses inside excluded work. Companion audit: #203578 is present-equivalent at e396e3f; its stable state-ownership guard is preserved. #203194, #203497 and #203926 apply to main’s newer release staging/activation flow and are not applicable here. #204127 changes when plugins are installed after activation, #203917 concerns retained-runtime cleanup, #202934 adds a separate macOS Git prereq, and #204151 is independent handoff repair guidance. None is required for lazy original-state capture. (cherry picked from commit a577911) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 1a2e6a7bec75074a150a684848990710c3fddc48)
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.
Refs #202925
What Problem This Solves
When an older installed updater is stuck, the recovery guidance tells people to install a newer OpenClaw by hand and run
openclaw update repair. The manual procedure ends by restarting the Gateway. If the stuck update left an interrupted handoff, repair then refuses withHandoff descendants remain alive or unverified: PID …and names the Gateway that was just started. Nothing in the docs says to stop the Gateway first.User Impact
People recovering a blocked update are told to run repair while the Gateway is still stopped: right after
openclaw doctor --fix, or afteropenclaw gateway stopif it is already running. They then start the Gateway themselves. The same note appears in the manual procedure, in theupdate repairreference, and next to the pinned-lease-store repair that #202925 needs.Why This Change Was Made
While repair recovers an interrupted update handoff, it counts OpenClaw processes, such as the Gateway and its workers, as possible handoff work. A process is exempt only if its whole process ancestry started after the handoff's last activity plus the recovery grace. A Gateway started inside that window keeps repair refusing. This follows the existing advice for the launcher-ownership case, which already says to run repair after Doctor and before refreshing and starting the service. Main and 2026.11.6 share this census logic, so no code changes.
Evidence
publication-complete, with a staletriage/uncertainhandoff lease in the journal-pinned store. 2026.11.5 repair refused withAnother update executor owns this installation.openclaw gateway start), 2026.11.6 repair refused withHandoff descendants remain alive or unverified: PID 40242, 40398, 40449. Those are the just-started Gateway and its two spawn-broker workers.openclaw gateway stop, thenopenclaw update repair, exited 0, reconciled the stuck run, recorded it as succeeded, and left the Gateway stopped with start guidance.openclaw gateway startcame back healthy, and a later update to a current main build succeeded.outsideHandoffFamilyinsrc/infra/openclaw-process-census.ts, withfamilyDeadlineset to last activity plus grace insrc/infra/update-managed-service-handoff-cleanup.ts. The logic is identical in v2026.11.6 and main.pnpm check:docspassed andgit diff --checkis clean.pnpm docs:check-links:anchorsreports only pre-existing failures in untouched files (release notes, code-mode troubleshooting) and a pre-existing duplicate ID in theupdate cleanupsection. Both new links resolve.