Repository navigation
fix(update): Git updates overbuild and cannot repair interrupted conversion - #189463
Conversation
|
🦞👀 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: needs maintainer review before merge. What this changesOrdinary Git updates skip declaration builds by default while preserving explicit declaration requests and immutable-release builds. Example: Run an ordinary source update with OPENCLAW_RUN_NODE_SKIP_DTS_BUILD unset.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it restores the documented Git-update build default at the correct owner, remains necessary on current main, and introduces no concrete correctness finding. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe installed update CLI prepares a candidate checkout, passes its command environment into shared build preflight, validates the resulting runtime, and then activates it; immutable preparation calls shared preflight separately. flowchart TD
A[Installed update CLI] --> B[Ordinary Git update owner]
B --> C[Candidate command environment]
C --> D[Shared candidate preflight]
E[Immutable build worker] --> D
D --> F[Build planner]
F --> G[Validated runtime activation]
Technical reviewBest possible solution: Keep the runtime-only default at the ordinary Git-update owner, preserving explicit overrides and the immutable build contract. Do we have a high-confidence way to reproduce the issue? Current main's ordinary-update environment lacks the default required by the build planner, establishing the unwanted full-build selection; this read-only review ran no target code. Is this the best way to solve the issue? The scoped environment default is the smallest complete repair using existing owners, and avoids undoing the intentional immutable declaration requirement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f1c935770852. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +8, Tests +6, Other +2. Total +16 across 5 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 31, 2026, 11:21 AM ET / 15:21 UTC. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
…ersion (openclaw#189463) * fix(update): skip declaration builds for ordinary Git updates * fix(update): reconcile existing build flag inventory * fix(update): repair interrupted npm-to-Git plugin recovery Fixes openclaw#189585
Default the existing build flag for Git updates while preserving explicit values and immutable release build policy. Omit the unrelated interrupted conversion recovery changes from the source commit. (cherry picked from commit 6df00ff) Co-authored-by: RomneyDa <[email protected]>
Closes #189456
Closes #189585
What Problem This Solves
Ordinary Git updates build unnecessary declarations, and an interrupted npm-to-Git conversion can leave
openclaw update repairrefusing its own retained plugin recovery.User Impact
Git updates build runnable JavaScript, plugin assets, and the Control UI by default. Explicit
OPENCLAW_RUN_NODE_SKIP_DTS_BUILD=0and immutable sealed releases still build declarations. Repair recognizes the original package path when it now links to the installed checkout, claims both paths, and settles recovery using the existing state and configuration.Repair refuses changed links or occupied paths without changing retained recovery. Alias repair does not reclaim cancelled update custody. Explicit update deadlines keep their existing meaning. An older already-running updater still controls its initial hop.
Why This Change Was Made
Apply the existing build policy at the ordinary Git-update owner. Preserve the saved recovery identity and use the existing executor to hold both the historical package slot and its canonical destination; revalidate that binding before settlement. No new setting, state schema, cache, dependency, or timeout extension is introduced.
Evidence
bf56514c98ecb628b406889e6d573d0485bfd53eand recovery base5bdf6a5674adab2f33d9420d00a3a102f9998a0frespectively. Local ClawSweeper was unavailable because its shared-owner fetch encountered an existing lock, which was preserved.28dcc5a515d22ba1826aaa3e3b6a6329642ef96bbuilt runtime artifacts in 7m 28s on the warm attempt. Candidate Doctor, lint, config, plugins, recovery, Gateway startup and runtime staging passed. Installed status reports exact Git/HEAD, dev channel and ready artifacts.c1ea8e1701b4e4e1509c73d0eb4dd3b830ceae4bpasses: manual clean source fast-forward and canonical runtime build (13 steps, 5m 41.7s), then installedopenclaw update repair --json --yes(4m 32s). Repair exits 0 withcoreUpdate: completed, plugins OK, and Doctor lint exit 0. Its overall status is warning for fixture configuration and maintenance advisories.rpc.ok: true) and a real fresh-sessionopenai/gpt-5.4reply of exactOKall pass. The agent turn takes 32.5s; the six final verification phases take 2m 54s.c1ea8e1701b4e4e1509c73d0eb4dd3b830ceae4bin 23m 29s: https://github.com/openclaw/openclaw/actions/runs/41225004235. Both exact-head CI and the scoped live recovery proof are complete.The separate post-ready successor cohort identity branch is a source-audited follow-up: #189637. This campaign proves explicit interrupted-conversion repair; uninterrupted full-source-update completion remains uncovered by the capped attempts.