Repository navigation
Conversation
Route update restarts through the target CLI executor and remove the detached platform helper. Preserve service definitions, original update authority, child settlement, and final readiness checks, including targets without a known version.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 20, 2026, 10:46 AM ET / 14:46 UTC (Revision 5). ClawSweeper reviewWhat this changesRoutes update-triggered Gateway restarts through the existing native service command, removes detached restart scripts, and transfers regression coverage to the replacement path. Merge readiness⛔ Blocked before merge - 2 items remain Keep open: the cutover remains useful and is not implemented on fetched main. No actionable patch defect was found; the previously identified Windows qualification requirement remains unresolved. Priority: P2 Review scores
Verification
How this fits togetherThe updater replaces OpenClaw’s installed code and asks the platform service manager to restart the Gateway. Restart ownership and health verification determine whether the update can finish successfully or must retain recovery material. flowchart TD
A[Installed updater] --> B[Candidate installation]
B --> C[Live update ownership check]
C -->|Authorized| D[Native Gateway restart command]
C -->|Revoked| E[Refuse service mutation]
D --> F[Platform service manager]
F --> G[Gateway readiness verification]
G --> H[Finish update or retain recovery]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -798, Tests -1181, Config 0, Other 0. Total -1979 across 21 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one fenced native restart owner, with Windows upgrade evidence demonstrating preserved service identity, successful readiness, and safe recovery through the replacement path. Do we have a high-confidence way to reproduce the issue? Yes, at source level: a writable service refresh can select the standalone helper on fetched main, bypassing the documented native command ownership path. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes: reusing the existing fenced command removes competing restart ownership while retaining readiness and recovery handling; native Windows qualification is still needed to establish upgrade safety. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 41bc123fcb29. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
…date-restart-native-owner
|
Closing as superseded by #155355 (commit I checked the original intent against current source and had the closure independently challenged. The update now invokes the target installation’s fenced Gateway CLI, preserves its service definition, and verifies every attempted restart, including unknown-version targets. Install-root reconciliation, original command/environment restoration, and refusal of unverified recovery remain in the owning path. The exact detached helper and its helper-only tests are removed. The original 377-line restart-outcome suite remains registered and differs only in its This establishes source-level supersession of this branch. No new native Windows qualification is claimed; the broader update/platform work remains tracked separately in #150153. |
What Problem This Solves
Fixes update restarts taking a separate detached helper path when the managed Gateway service needs its environment refreshed.
User Impact
Updates use the fenced native restart owner, preserving the service definition, readiness verification, and rollback identity. No configuration or migration is required.
Why This Change Was Made
Delete the standalone shell/Windows restart generator and use the existing update-owned Gateway command. Preserve current install-root reconciliation, original-port restoration, and unverified-recovery handling. This removes 798 production lines and obsolete helper-only tests.
Related: #150153 (split replacement; the original PR is not intended to merge).
Evidence
3007d28: published 2026.9.5 upgraded to that candidate with automatic migration and state preservation. A separate candidate-driven restart used real Gateway processes with the maintained systemd transport fixture, mock inference, and a labeled synthetic future-version cohort. All 68 artifacts were hash-verified and the lease released. This is not native systemd or published-driver automatic-restart proof.f1888b1; its attribution stays separate from this standalone branch.