Skip to content

fix(update): preserve configuration and hand failed upgrades to triage - #134490

Merged
fuller-stack-dev merged 33 commits into
mainfrom
steipete/upgrade-experience-final-3e21d8
Sep 1, 2026
Merged

fuller-stack-dev merged 33 commits into
mainfrom
steipete/upgrade-experience-final-3e21d8

Conversation

@steipete

@steipete steipete commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

An upgrade can replace core files before Doctor, plugin repair or Gateway recovery fails. Operators need their authored configuration intact and a repair path that still works when the updated installation is unhealthy.

Failed interactive updates now finish service recovery and cleanup, enter openclaw triage, and immediately open the first launchable installed Claude, Codex, OpenCode or Pi on the affected host. The agent receives the failure and installation context. --agent selects one explicitly; the update retains its original nonzero outcome after the repair session.

Why This Change Was Made

The prepared handoff captures the operator environment and working directory before package replacement, uses current owned installation selectors after cleanup, and can use an in-memory prompt if writing diagnostics fails. Native activation remains owned by the current update result and service lifecycle; diagnostic exports and notifications do not authorize a restart.

Doctor preserves authored references when migrating configuration. Public snapshots omit private pre-migration input, and Doctor child processes receive the selected repair policy instead of accidentally inheriting a parent value. Plugin callers share declared source/cohort selection and retain typed consent failures until that specific plugin is repaired.

User Impact

Interactive repair uses the installed agent's normal permissions and authentication. JSON, --yes, background and non-interactive updates collect diagnostics without opening an interactive fixer. No new persistent configuration option or database schema is introduced.

The Control UI distinguishes a disconnect from a confirmed restart and directs operators to openclaw triage on the Gateway host before retrying an update.

Evidence

Candidate: fb035e5eab6d5573a29a6f54467d34aa4836ecba against main 0730b41693592e7dbce141d0dc8dda6ad33eddb3.

Check Evidence
Update/Doctor behavior 793 tests passed on the preceding reviewed source; 596 affected tests passed after the final lint cleanup. These overlap and are not combined into a new total.
Review and focused lint Whole-source review and final follow-up review are scoped-clean; final focused type-aware lint passed.
Control UI 150 unit tests and 9 real Chromium cases passed. The final lint changes are outside the tested UI input closure.
Full changed-file checks All 44 stages passed in 708.67 seconds. All 36,313 source files match the final commit tree.
Final package Built version 2026.8.1 from the final commit; 59,563,917 bytes, SHA-256 855cfd56d0fd1751aac2868751057f45e939bb4e6d731acc2e3efc09a816665b. Package verification passed with source unchanged.
Live proof Final-package authenticated agent repair, native recovery, and populated historical first-hop/config/identity-include verification in Crabbox: PENDING; isolated test environments are starting.
Hosted CI and landing Final commit pushed and read back exactly; PR is open; a conflict with newer main is being resolved. Exact-head CI is pending. ClawSweeper review refresh, live proof and merge verification remain PENDING.
Scenario Before: original PR After
Failed update Original failed-update dialog Failed-update dialog with host-side triage guidance
Disconnected update Original disconnected-update state Disconnected-update state with local repair guidance

Real running Control UI in isolated Chromium; mocked Gateway WebSocket and synthetic updater outcomes. Before images show the original PR, not current main. Refreshed static dialog copy/layout matches these after images; animation/background pixels can vary.

Movement-adjusted net LOC: production +715, tests +4,320, test support +1,953, docs +198, authored metadata +3, generated baseline 0. The test/support split discounts 83 exact baseline fixture lines moved into shared support; their combined net is +6,273. The 327-line handoff-support move and nine relocated Windows cases add no new coverage in the final cleanup.

Production growth supplies immediate installed-agent repair and puts failure, config, consent and native-identity handling at existing owners; shared plugin source selection removes duplicate policy. No incoming-main or discarded branch-only code is counted as this feature's growth.

Whole-roster include migrations and native macOS/Windows behavior require their own evidence; the identity-include and local/shim fixtures do not establish them. A separate upstream follow-up remains for Matrix artifact bootstrap masking its download error.

Related: #127363, #127364. Original PR author: @steipete.

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: matrix Channel integration: matrix channel: whatsapp-web Channel integration: whatsapp-web app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations size: XL maintainer Maintainer-authored PR labels Aug 31, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Published 2026.8.1 baseline — before this PR

Attached are the inspected continuous recording and disconnection screenshot from a real installed Gateway and Control UI, using a dedicated disposable Linux account with its actual HOME and native user-systemd service. Installation used npm install --global [email protected] --allow-scripts=openclaw. Only synthetic localhost data appears; no provider credentials or authentication bypass were used.

A real filesystem permission refusal prevented creation of the npm staging directory after the service was parked. Published 2026.8.1 already recovered this safe pre-lifecycle failure: native PID 7771 → stopped/MainPID 0 → recovered PID 8217, unchanged installed package/build, successful RPC health, and readiness HTTP 200. The UI disconnected, reconnected, and retained the failed-update details. A later Check status click produced a new real response.

This is preservation evidence, not a claim that published 8.1 strands this safe case, and not proof of the PR candidate. The screenshot also records the previous “The Gateway is restarting” copy; the candidate's after-capture remains pending.

Installed build: 2026.8.1-ea806575e645-2026-08-31T00-16-08.235Z. Provider: Blacksmith Testbox; lease tbx_01m1cgqk0c9gnh1yvggj3tcjrr; backing run. The backing workflow was cancelled during lease cleanup, so its conclusion is not the test verdict. The actual native/UI receipts passed; service inactive/MainPID 0, account absent, no remaining owned processes, and provider completed were verified.

The 16.76-second recording's 419 decoded frames were inspected through all 19 contact sheets and selected full-size stills. Its bytes were rechecked before upload: SHA256 d96bb395e3efd475f8c978ae2b5765af5cad90af09fd128facdc32dd11374f8a. The attached screenshot was also reopened and inspected. Earlier rejected captures are not attached.

attachment-3352894927.webm

Published 2026.8.1 disconnection dialog before the copy correction

@steipete
steipete force-pushed the steipete/upgrade-experience-final-3e21d8 branch from f0b1469 to e30232b Compare August 31, 2026 23:21
@steipete
steipete marked this pull request as ready for review August 31, 2026 23:24
steipete added a commit that referenced this pull request Sep 1, 2026
Prefer npm before ClawHub only among declared plugin identities, preserving explicit source/version intent, artifact integrity and capability consent. Keep the exact installed beta cohort and require typed target absence before fallback.

Preserve authored environment references through both Doctor writers, resolve snapshot destinations at operation time, and keep migration-only metadata out of redacted snapshots. Avoid loading channel runtimes for unused pairing account facts while retaining captured migration-owner attribution.

Record activation safety at package/Git mutation boundaries. Keep installed-CLI recovery, verify runtime/native-service identity, fence Windows autostart, preserve child status, and avoid duplicating consumed notifications or rejecting completed install switches. Surface update-specific disconnect diagnostics without changing explicit-restart guidance in Model Setup.

Retain the upgrade-survivor first-hop, approval and installed-version oracles. Repair CI's type-only Doctor cycle and stale source-policy, final-Doctor and Teams whitespace expectations without weakening timeouts, gates or the main-owned Markdown fix.

PR: #134490
@steipete
steipete force-pushed the steipete/upgrade-experience-final-3e21d8 branch from e30232b to dcdd46a Compare September 1, 2026 01:19
@openclaw-barnacle openclaw-barnacle Bot added the channel: msteams Channel integration: msteams label Sep 1, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: 9e219f27fbfa574568aef0fcc76adb912faa9fc2

@steipete

steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Native Linux after-proof — exact packaged candidate

The full native harness passed on Blacksmith Testbox run 33475007368, lease tbx_01m1dr5jngrrzesb4a9y3ncryx, using source/tooling 831119adf77f9b4eb1f3bdad8bd5db58d0cdbbf3 and the unchanged unpublished package SHA256 0b1af923bcda62f0ffb7416efe3bd4f481e582adb11c9d2df73dbf9203fb13a5. This is a real dedicated Linux account, passwd HOME, user-systemd service, installed Gateway and Control UI—not mock transport.

An actual pre-lifecycle staging EACCES produced a failed update while restoring the verified service. UI recovery and both foreground CLI output modes preserved the expected failure exit, installed package bytes, serving build identity, successful RPC and HTTP readiness. Gateway PIDs changed 6224 → 6694 → 7086 → 7430. The UI showed disconnected guidance, reconnected to the retained failure, and Check status produced a fresh successful update.status response. Published 2026.8.1 already recovered this safe case in the before proof; this is preservation plus the corrected operator guidance, not a claim that baseline recovery was entirely broken.

The pre-CLI npm matrix also passed under Node 24.19.0/npm 11.17.0: normal and cleanup-opt-out installs cleared the lifecycle marker; --ignore-scripts retained it, and a separately observed later --version repaired it. Original command exit 0, scenario qualification, artifact retrieval and all cleanup predicates passed. Permission restoration was verified under the native account's actual UID before teardown; the service was inactive, the account absent, no account processes remained, and the lease was confirmed completed. The separate uninstall command still recorded exit 1 with unknown cause; it is not mislabeled as a successful uninstall.

Remote scenario invocation:

node scripts/crabbox-wrapper.mjs run --debug --id tbx_01m1dr5jngrrzesb4a9y3ncryx --timing-json -- python3 native-final-input-native/bootstrap.py

The attached continuous recording is 17.56 seconds. Every decoded frame was inspected through complete contact sheets (439 frames; only checksum-identical frames collapsed), along with the selected full-resolution stills. Captures contain only synthetic test state, masked authentication and product-redacted paths. Video SHA256: 329b120a4af0b462e15b10b6df34383699650acb2474ee055c7c5bf9c5b35ce8.

This completes the safe native/UI lane, not the entire campaign. The injected target-Doctor crash and published-version first hop remain separate gates. Required CI is green on the exact head.

Earlier supplemental mock-transport dark/light coverage

These real browser renders used synthetic mock Gateway transport in the four-case pnpm test:ui:e2e ui/src/e2e/update-lifecycle.e2e.test.ts run. Their dialog implementation and displayed guidance are unchanged at the current head. Both full captures were inspected. They remain supplemental evidence, separate from the native recording above.

Mock-transport disconnected guidance, dark

Mock-transport disconnected guidance, light

attachment-299690633.webm

Native Gateway disconnection guidance

Retained native update failure after recovery

@steipete

steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Additional installed-upgrade proof and remaining first-hop blocker

The injected target-Doctor crash proof passed on Blacksmith Testbox run 33493452384, using the unchanged exact candidate 831119adf77f9b4eb1f3bdad8bd5db58d0cdbbf3 and package SHA256 0b1af923bcda62f0ffb7416efe3bd4f481e582adb11c9d2df73dbf9203fb13a5.

The harness bound the actual Doctor child through its pidfd, executable/entrypoint identity, process birth and live ancestry to the launched updater. After the owned service was observed stopped, one SIGKILL was delivered. The updater reported the Doctor step with exitCode: null, signal: "SIGKILL", and termination: "signal"; its actual recovery verdict was serviceRestartSafe: false, reason runtime-verification-failed. It exited 1 and left the service inactive with MainPID=0 and readiness unavailable. Installed package identity and bytes remained unchanged. The harness itself exited 0, retrieved and verified 28 evidence files, and confirmed account/process/service/lease cleanup. This is process-crash proof, not a claim that a migration had already executed or that a natural migration failure was reproduced. The separate uninstall exit 1 remains recorded, not relabeled as success.

The proof-input transfer blocker was resolved without increasing deadlines or skipping source: a complete hash manifest replaced the duplicate source-archive upload. Local validation covered all 37,549 archive members and 35,914 tracked files/symlinks. Remote reconstruction verifies every source member before creating the native test account, while retaining the existing tar extraction filter. The passing run's ordinary syncs took 103.083 seconds and 11.316 seconds. No product source or package bytes changed for this harness repair.

The populated 2026.7.1-2 first hop then ran on Testbox run 33495464698. The exact candidate was installed, the Gateway auth SecretRef remained authored, and all immediate config/state/exec-approval migration assertions passed before any standalone Doctor, consent, permission repair, or restart. The old service had intentionally been stopped before seeding; this does not prove that the old updater stopped a running service.

That first hop is not qualified as a successful upgrade. The old updater exited 1 without JSON after the updated installation refused its service-environment refresh with SERVICE_DEFINITION_UNKNOWN: [unsafe-permissions]: the service directory or its nearest existing ancestor was group/world-writable. The service remained stopped. No chmod or manual recovery was performed to hide the failure, and cleanup was confirmed. Source/history inspection confirms that the unsafe-permission refusal is an intentional service-definition boundary; the Gateway CLI guide requires inspecting ownership and explicitly fixing known-private paths. No automatic permission repair or guard relaxation was added.

An earlier first-hop attempt had probed RPC immediately after an explicit service-start acknowledgment. The harness now uses the existing canonical readiness probe before RPC for its two explicit startup baselines, sharing the original 90-second deadline. It does not add waiting after the updater returns or weaken the immediate migration/process assertions.

Landing remains blocked on a separate first-hop startup failure. A distinct follow-up fixture explicitly prepared its known-owned service paths with the documented nonrecursive permission correction, recording before/after metadata. This is an operator prerequisite, not automatic upgrade recovery. That case passed the permission guard and immediate migration/reference assertions, but the old updater still exited 1 without JSON after Gateway restart failed. It reached neither separate capability consent nor the candidate-generation-change phase.

The latest replay, Blacksmith Testbox run 33502934695, preserved that failure on the same exact candidate/package. The service was active/running with NRestarts=0, while its expected port was free. Failure-only collection now uses the candidate's profile-qualified log rather than the baseline's unprofiled filename. The bounded, closed-field diagnostic projection has not identified the startup cause; plugin warnings are not being treated as causal proof. Account, process, service, and lease cleanup completed; the separate uninstall exit 1 remains recorded.

A fresh review of the complete committed campaign also completed with no findings at the configured P0 threshold, across two complete chunks. This does not replace runtime proof or certify lower priorities. No merge, release, version bump, or package publication has occurred.

steipete added a commit that referenced this pull request Sep 1, 2026
* perf(ui): defer Settings English until needed

Keep optional Settings copy out of Control UI startup while preserving
cold settings search, the Updates introduction, translation fallbacks,
and shared startup/update guidance. Move 263 strings unchanged through
the existing lazy catalog registration boundary.

Unify complete source-catalog composition and source-hash dependencies
for Vite, verification, and locale generation. Preserve source ordering
and translation-memory aliases; no budget or baseline changes.

Related: #121497
Separate startup-headroom follow-up to #134490.

* test(ui): count only registered locale adapters

Keep locale loading assertions independent of English source fragments.
The Settings registrar is not an operator-selectable foreign locale.
Use the canonical registry instead of a growing English filename list.

* test(agents): scope real OpenRouter hooks in error integration

Replace cold inactive-registry warm-up with existing public plugin loading
and request-scoped registration. Keep HTTP/SSE composition and add a
billing case that proves the real provider hook participates.

Remove the 300-second setup override; no production behavior changes.

* test(plugins): own OpenRouter composition coverage at the integration boundary

Move the real-provider/core-classifier suite out of core source. Preserve
all six HTTP/SSE cases, registry scope and automatic unit-fast/CI coverage.
The explicit extension boundary suite and canonical root types/lint pass.
@steipete
steipete force-pushed the steipete/upgrade-experience-final-3e21d8 branch from 831119a to 0aebcbe Compare September 1, 2026 15:19
@github-actions github-actions Bot removed the dependencies-changed PR changes dependency-related files label Sep 1, 2026
@steipete

steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Latest observed PR head: 964526b8884160bfa34fa7447596228cc973d08e. Not land-ready. This proof workstream has stopped branch publication to preserve the newer recovery integration rather than overwrite it. The local integration work and test-only correction are preserved; no competing push or merge has been made.

The current CI run has failing checks, including the aggregate gate. The parallel recovery workstream reports a reproduced populated-upgrade failure involving the retired agents.list roster and a nested identity include. That repair and final-head native verification remain open. The evidence below belongs only to its named earlier revisions and does not qualify the newer head.

Completed verification for the earlier 0857eb24 candidate

Integration with the landed failure-triage flow is complete against pinned main a040b03636567f2db0f714fd1a842be8edf35771. It retains triage's cleanup/unwind structure while keeping producer-owned restart safety, exact child/root identity, original failure exits and authored configuration. Diagnostics never grant activation or convert a failed update to success. A reproduced late diagnostic-read exception is now contained by the existing diagnostic boundary, so it cannot skip lease cleanup after successful recovery. Duplicate notification/recovery test paths were consolidated; update, recovery and diagnostic child logs now identify their phases separately.

Local proof includes 541 CLI/Doctor/convergence tests, 196 handoff/sentinel tests, 163 UI owner tests, nine real-browser E2Es against a synthetic mocked Gateway, and six affected profile-home process cases. These suites overlap other retained runs and are not presented as a unique aggregate. Relevant focused types, lint, formatting and i18n checks passed. Fresh complete-candidate Codex review was scoped-clean at the configured P0-only threshold; all 160 reviewed source hashes and the complete patch hash matched after commit. Canonical build passed at this exact head with unchanged UI budgets; build ID 2026.8.1-0857eb24ea1e-2026-09-01T18-47-57.248Z. The old-base CLI test-type error already has a canonical main fix, which merges cleanly; it was not duplicated here.

Exact-head CI run 33547064790 completed with one failed test shard and its aggregate gate: two human finalization-output assertions required the failure to be the last line, even though triage follows it. The fixture also pointed triage at a Doctor-only synthetic entrypoint. The two-file test correction is now complete in a preserved local commit: explicit Doctor/triage dispatch, exact ordered output, original nonzero exits, observable no-restart behavior and whole-stdout JSON validation. The original two failures were reproduced, then all 51 focused tests passed, along with scoped lint/format and fresh P0-scoped review. Three broader local Knip scans timed out at their unchanged 600-second limit without a verdict; those are incomplete, not passing. Incorporation of this local correction into the newer public branch is not claimed.

The exact 0857eb24 archive is now independently qualified by both npm inventory and the canonical tarball guard on clean Linux. Its SHA-256 is 6b3e911e26d1a07181f0335ae0b4899ef8312bcc3caf38222bdf106fbac286dc, size 64,785,469 bytes. Npm inventory run 33559782490 completed in 3.33 seconds with Node 24.19.0/npm 11.17.0. Canonical tarball-guard run 33565285362 reconstructed all 37,865 pinned source members and passed in 13.833 seconds. Both retained the original 300-second command deadline. The canonical output ended with OpenClaw package tarball integrity passed. Exact output hashes, archive/input hashes, synthetic-home canaries and both completed Testbox leases were independently verified.

The earlier local inventory and tarball-check timeouts remain failures; the successful Linux checks do not rewrite those outcomes. The native adapter now has 40 passing helper/reducer tests and focused independent review, but this is preparation only: no native execution or admission occurred for 0857eb24. Neither this archive nor older recordings qualify the newer public head.

Previous packaged candidate

The following completed package/preparation evidence belongs to be35c522644683ea84b0a4d2e73bef82086d538e, not the later head.

The actual catalog conflict is resolved against pinned main snapshot 8361f3704dd5e151ff1325e62ff5de658b6c62e6. The integration preserves prepared catalog facts and npm-first selection among the same plugin's declared sources. It retains the validated ClawHub counterpart for duplicate suppression without inventing an npm identity from a display name. The integrated owner/sibling replay passed 476 tests, and the complete candidate received a fresh scoped-clean Codex review at the configured P0-only threshold.

CI also exposed a real PR-anchor extraction omission: the functional wrapper inventory was missing the three new native-home dependencies. The final commit adds those three entries only. The original extracted publisher/planner regression failed before the repair; all 36 wrapper tests passed afterward, unchanged, and the narrow follow-up review was scoped-clean.

Canonical pnpm build passed for this exact be35c522 head. There were no ineffective-dynamic-import diagnostics; four existing dependency eval diagnostics remain. A new unpublished package passed the canonical tarball checker:

  • Version: 2026.8.1
  • Build ID: 2026.8.1-be35c5226446-2026-09-01T17-05-01.659Z
  • SHA-256: bfa13e9e0163f992be702168c75af74b1d15c0038373729ffb93ab0a63b79217
  • Size: 64,707,975 bytes

Preparation qualification passed 17 native helper tests and independently reconstructed all 37,810 frozen source members with identical bytes, modes, types and symlink targets. Independent preparation review matched the package, 47 source-owner hashes and 19 frozen driver hashes. This is preparation evidence, not native execution; this generation's input remains disabled and no native lease has been started for it.

Exact-head CI run 33536959196 completed with one failed tooling shard and the corresponding aggregate gate. The six staged-live, real-home and profile-only process fixtures received an empty synthetic profile marker instead of the expected value. That failure led to removing Bash login startup before explicitly loading the selected profile. The correction is retained in 0857eb24; no native execution was admitted for this older package. The anchor-extraction regression did not recur. The earlier Matrix native-download setup failure did not recur in this run. No assertion, deadline or provider policy has been relaxed.

Earlier proof, tied to its original candidate

For 0aebcbeb1d0d58413a85ac3021da0933639d2406, the complete local changed gate and final 294-test replay across 11 files passed. Those commands ran with a fresh external synthetic HOME/USERPROFILE/TMP, no ambient application selectors, and retained canaries and failed-before receipts. The exact replay was:

node scripts/run-vitest.mjs test/scripts/run-vitest-state-cleanup.test.ts test/scripts/vitest-process-group.test.ts test/scripts/vitest-report-owner.test.ts test/scripts/upgrade-survivor-assertions.test.ts test/scripts/upgrade-survivor-update-result.test.ts test/scripts/upgrade-survivor-first-hop.test.ts test/scripts/upgrade-survivor-installed-version.test.ts test/scripts/upgrade-survivor-exec-approvals.test.ts test/test-env.test.ts test/test-env.state-lifetime.test.ts test/helpers/process-wait.test.ts

Native first-hop proof passed for the 0aebcbeb package, not the later head: Blacksmith Testbox run 33525114280. The published 2026.7.1-2 updater exited 0; the authored Gateway reference, config, migrated state and execution-approval policy survived immediate checks before standalone repair. Plugin finalization reported ok with no warnings, all observed Doctor/post-core children exited 0, and no separate consent step was needed. A subsequent update begun with that candidate service active observed the stopped generation, a new service invocation, the exact build over RPC, and healthy /healthz and /readyz responses. Its package SHA-256 was 82311fdfb567cd561d7e21faf88c686e9c67d8dba6682cfc6e0261d18fc5dbe1, size 64,710,540 bytes.

That was the explicit private-service-permissions fixture, with the historical baseline deliberately stopped before migration specimens were seeded; raw unsafe-permission refusal remains separate negative evidence. Extra startup timeline instrumentation was absent. Service/account/process cleanup and exact lease completion passed; the uninstall CLI's exit 1 remains recorded rather than rewritten as success. Its output was not retained by the unchanged bootstrap, so the cause is unknown.

The 0aebcbeb proof and older 831119 package/recordings remain historical and will not be relabeled. Native macOS/Windows installed-package proof remains unavailable under the previously recorded isolation constraints. Nothing has been released or published to npm.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
* perf(ui): defer Settings English until needed

Keep optional Settings copy out of Control UI startup while preserving
cold settings search, the Updates introduction, translation fallbacks,
and shared startup/update guidance. Move 263 strings unchanged through
the existing lazy catalog registration boundary.

Unify complete source-catalog composition and source-hash dependencies
for Vite, verification, and locale generation. Preserve source ordering
and translation-memory aliases; no budget or baseline changes.

Related: openclaw#121497
Separate startup-headroom follow-up to openclaw#134490.

* test(ui): count only registered locale adapters

Keep locale loading assertions independent of English source fragments.
The Settings registrar is not an operator-selectable foreign locale.
Use the canonical registry instead of a growing English filename list.

* test(agents): scope real OpenRouter hooks in error integration

Replace cold inactive-registry warm-up with existing public plugin loading
and request-scoped registration. Keep HTTP/SSE composition and add a
billing case that proves the real provider hook participates.

Remove the 300-second setup override; no production behavior changes.

* test(plugins): own OpenRouter composition coverage at the integration boundary

Move the real-provider/core-classifier suite out of core source. Preserve
all six HTTP/SSE cases, registry scope and automatic unit-fast/CI coverage.
The explicit extension boundary suite and canonical root types/lint pass.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
openclaw#134490)

* fix(update): preserve configuration and verify upgrade recovery

Prefer npm before ClawHub only among declared plugin identities, preserving explicit source/version intent, artifact integrity and capability consent. Keep the exact installed beta cohort and require typed target absence before fallback.

Preserve authored environment references through both Doctor writers, resolve snapshot destinations at operation time, and keep migration-only metadata out of redacted snapshots. Avoid loading channel runtimes for unused pairing account facts while retaining captured migration-owner attribution.

Record activation safety at package/Git mutation boundaries. Keep installed-CLI recovery, verify runtime/native-service identity, fence Windows autostart, preserve child status, and avoid duplicating consumed notifications or rejecting completed install switches. Surface update-specific disconnect diagnostics without changing explicit-restart guidance in Model Setup.

Retain the upgrade-survivor first-hop, approval and installed-version oracles. Repair CI's type-only Doctor cycle and stale source-policy, final-Doctor and Teams whitespace expectations without weakening timeouts, gates or the main-owned Markdown fix.

PR: openclaw#134490

* test(msteams): align the corrected main whitespace fixture

* perf(ui): remove unreachable update translations

Remove superseded version-only verification copy and the unused idle label from the eager catalog. Keep identity-aware verification and all recovery guidance unchanged, align translation fixtures, and restore the existing merged startup budget without increasing its baseline or limits.

* fix(update): retain consent failures and isolate validation homes

Carry unresolved non-retained plugin capability refusals from missing-install
repair through post-core convergence as typed outcomes, preserving the existing
update failure and restart boundary. Keep usable retained artifacts and
transient fetch failures on their existing notice/warning paths.

Give test invocations a native process HOME before config imports and worker
creation. Preserve bounded live/profile context, report selection, installed
tool caches, and process-group/pipe-owned namespace cleanup or truthful
retention. Keep unknown or mixed explicit real-home selections closed.
Resolve the repo-owned staging helper from its owning cwd and await complete
PID readiness before cancelling native report fixtures.

Align the survivor recovery oracle with typed consent errors that intentionally
have no Doctor reason. Preserve strict plugin/code/version/core-step checks and
historical warning-only reports; successful-update admission still rejects
refusals. Keep the local TestHomeMode alias private and satisfy helper lint.

PR: openclaw#134490

* fix(plugins): preserve declared catalog identity during upgrade integration

Carry the prepared, provenance-validated ClawHub package instead of discarding
it into a boolean. Suppress the declared installed counterpart without deriving
an npm identity from overlaid display metadata or hiding an npm namesake.
Keep lazy prepared catalog facts and first-normalized-record icon behavior.

Retain explicit ClawHub-only actions and npm-first dual-source actions, and
cover the selected source's pinned inspection metadata with existing tables.
The incoming duplicate-row cases fail before the provenance fact is retained.

PR: openclaw#134490

* fix(ci): include home isolation in PR anchor closure

Register the three runtime dependencies in the canonical extraction and trust inventory. Extracted planners and publishers now load the real home policy, context, and selection modules without stubs or weaker assertions. The existing extracted-anchor regression fails before this change and the full wrapper suite passes afterward.

* fix(update): hand failed upgrades to local coding agents

Route interactive update failures through triage after updater ownership is
released. Preserve the captured installation, invocation directory, bounded
diagnostics and original update result while the installed coding agent
repairs and verifies the machine using its existing permissions.

Keep background and JSON guidance consistent, preserve config references,
and fix resolved consent failures and selected catalog source provenance.

Validation: complete combined P2 review, 639 focused tests, 71 UI unit
tests, and four Chromium scenarios passed. Full changed-code checks passed
all typegraphs but stopped on one no-map-spread lint error in a test fixture.

Local integration checkpoint: fix that fixture and combine the current main
triage owner before final review, package proof, publication, or landing.

* fix(update): preserve configuration and verify upgrade recovery

Prefer npm before ClawHub only among declared plugin identities, preserving explicit source/version intent, artifact integrity and capability consent. Keep the exact installed beta cohort and require typed target absence before fallback.

Preserve authored environment references through both Doctor writers, resolve snapshot destinations at operation time, and keep migration-only metadata out of redacted snapshots. Avoid loading channel runtimes for unused pairing account facts while retaining captured migration-owner attribution.

Record activation safety at package/Git mutation boundaries. Keep installed-CLI recovery, verify runtime/native-service identity, fence Windows autostart, preserve child status, and avoid duplicating consumed notifications or rejecting completed install switches. Surface update-specific disconnect diagnostics without changing explicit-restart guidance in Model Setup.

Retain the upgrade-survivor first-hop, approval and installed-version oracles. Repair CI's type-only Doctor cycle and stale source-policy, final-Doctor and Teams whitespace expectations without weakening timeouts, gates or the main-owned Markdown fix.

PR: openclaw#134490

* test(msteams): align the corrected main whitespace fixture

* perf(ui): remove unreachable update translations

Remove superseded version-only verification copy and the unused idle label from the eager catalog. Keep identity-aware verification and all recovery guidance unchanged, align translation fixtures, and restore the existing merged startup budget without increasing its baseline or limits.

* fix(update): retain consent failures and isolate validation homes

Carry unresolved non-retained plugin capability refusals from missing-install
repair through post-core convergence as typed outcomes, preserving the existing
update failure and restart boundary. Keep usable retained artifacts and
transient fetch failures on their existing notice/warning paths.

Give test invocations a native process HOME before config imports and worker
creation. Preserve bounded live/profile context, report selection, installed
tool caches, and process-group/pipe-owned namespace cleanup or truthful
retention. Keep unknown or mixed explicit real-home selections closed.
Resolve the repo-owned staging helper from its owning cwd and await complete
PID readiness before cancelling native report fixtures.

Align the survivor recovery oracle with typed consent errors that intentionally
have no Doctor reason. Preserve strict plugin/code/version/core-step checks and
historical warning-only reports; successful-update admission still rejects
refusals. Keep the local TestHomeMode alias private and satisfy helper lint.

PR: openclaw#134490

* fix(plugins): preserve declared catalog identity during upgrade integration

Carry the prepared, provenance-validated ClawHub package instead of discarding
it into a boolean. Suppress the declared installed counterpart without deriving
an npm identity from overlaid display metadata or hiding an npm namesake.
Keep lazy prepared catalog facts and first-normalized-record icon behavior.

Retain explicit ClawHub-only actions and npm-first dual-source actions, and
cover the selected source's pinned inspection metadata with existing tables.
The incoming duplicate-row cases fail before the provenance fact is retained.

PR: openclaw#134490

* fix(ci): include home isolation in PR anchor closure

Register the three runtime dependencies in the canonical extraction and trust inventory. Extracted planners and publishers now load the real home policy, context, and selection modules without stubs or weaker assertions. The existing extracted-anchor regression fails before this change and the full wrapper suite passes afterward.

* fix(test): preserve source home when loading profiles

Read the explicitly selected profile with a non-login Bash command so
system and user login startup cannot replace the source HOME first.
Keep positional profile quoting, child-only HOME/USERPROFILE, existing
profile opt-in and test/native-home isolation unchanged.

The existing six profile-home matrix cases failed on Linux CI run
33536959196, job 99953769387. New exact-head Linux CI remains required;
this local repair does not refresh or admit the prior native proof.

PR: openclaw#134490

* fix(update): complete failure triage integration

Keep landed failure diagnosis after recovery and cleanup decisions without
letting diagnostic exports authorize activation or overwrite updater exits.
Preserve exact unsafe handoff and nested foreground results, consumed
notifications, successful install-root switches, typed consent failures and
update-specific disconnected guidance alongside main's triage takeover.

Contain diagnostic read failures inside the diagnostic owner so a completed
recovery still releases its lease and sensitive files. Retain phase-labelled
updater, recovery and diagnostic exits plus helper terminal completion.
Remove the trivial aggregate-error wrapper while preserving both failures,
and consolidate launchd/notification coverage into canonical test support.

Focused CLI, Doctor, handoff, UI and profile-home proof passed under external
synthetic homes. Complete integrated P0 review is scoped-clean; exact-head
Linux CI and native/package qualification remain with the parent workflow.
The unchanged main models-cli auth-login test-type error remains a follow-up.

PR: openclaw#134490

* test(update): split Doctor and service recovery fixtures

Move the existing Windows Doctor recovery matrix and shared fixtures into
focused files, and keep managed terminal-outcome tests in their existing
result helper. Preserve all case bodies, assertions, and hook cleanup.

Keep Windows restore failure in a local variable and narrow the triage
prompt-write fixture path before string matching. Scoped type-aware lint,
all affected existing suites, and independent follow-up review pass.

The full repository gate and final packaged Crabbox recovery and upgrade
proof remain required before landing.

* fix(update): retain plugin attempt spec on consent failure

* test(update): preserve runtime exports in option mocks

---------

Co-authored-by: Jason (Json) <[email protected]>
steipete added a commit that referenced this pull request Sep 2, 2026
…#135671)

* fix(config): preserve authored references during Doctor repair

Use canonical authored projection for invalid snapshots so a legacy agent
roster can migrate without restoring the retired list or flattening includes.
Keep roster-format intent separate from explicit value edits and consume it
only after the Doctor write commits. Compare resolved Gateway modes while
retaining intentional parameter removal and ambiguous-include safeguards.

Derive plugin consent failure from its existing typed outcomes, and arm the
transient composer-cue test observer before the user action.

Follow-up to #134490. The exact repair patch and all 26 managed-review
datasets are unchanged after adopting its landed main base. Independent
P0-P2 review, 107 integration cases, and 18 real Doctor cases on this base pass.
The earlier 528 config/Doctor cases pass with those owners unchanged.
Final packaged Crabbox upgrade and autonomous repair proof remains pending.

Co-authored-by: Jason (Json) <[email protected]>

* test(update): verify npm artifacts in upgrade recovery

Validate automatic plugin recovery against the declared npm source, its
managed installation, exact version, artifact integrity, and capability
consent. Preserve selected-plugin consent deferral and the explicit
ClawHub companion audit.

Replace the stale ClawHub-only request expectation with a positive artifact
assertion and zero unexpected ClawHub requests. Exercise invalid records
and the real phase order, including macOS Bash 3.2 optional arguments.

The packaged stable-to-candidate reproduction exposed the obsolete oracle.
Focused regressions, all changed checks, and final managed review pass.
Full final-package Crabbox verification remains in progress.

Related: #134490

* test(ui): wait for draft persistence before legacy seeding

Observe the committed nonempty draft and its post-send clear before replacing current metadata with the legacy outbox fixture. This prevents navigation from aborting the clear and restoring the old text and Blob.

The native IndexedDB latency reproduction fails before the correction and passes after it. Both original legacy table cases and the changed checks pass.

* test(ui): wait for menu readiness in continuation proof

Use the shared focus-synchronized submenu helper for both desktop openings
of Continue in terminal. Keep the real action clicks, exact handoff and
clipboard assertions, reconnect retirement, and mobile pointer flow.
Both browser cases and the changed-file gate pass with a clean managed review.

Co-authored-by: Jason (Json) <[email protected]>

---------

Co-authored-by: Jason (Json) <[email protected]>
fuller-stack-dev added a commit that referenced this pull request Sep 2, 2026
* fix(update): preserve configuration and verify upgrade recovery

Prefer npm before ClawHub only among declared plugin identities, preserving explicit source/version intent, artifact integrity and capability consent. Keep the exact installed beta cohort and require typed target absence before fallback.

Preserve authored environment references through both Doctor writers, resolve snapshot destinations at operation time, and keep migration-only metadata out of redacted snapshots. Avoid loading channel runtimes for unused pairing account facts while retaining captured migration-owner attribution.

Record activation safety at package/Git mutation boundaries. Keep installed-CLI recovery, verify runtime/native-service identity, fence Windows autostart, preserve child status, and avoid duplicating consumed notifications or rejecting completed install switches. Surface update-specific disconnect diagnostics without changing explicit-restart guidance in Model Setup.

Retain the upgrade-survivor first-hop, approval and installed-version oracles. Repair CI's type-only Doctor cycle and stale source-policy, final-Doctor and Teams whitespace expectations without weakening timeouts, gates or the main-owned Markdown fix.

PR: #134490

* test(msteams): align the corrected main whitespace fixture

* perf(ui): remove unreachable update translations

Remove superseded version-only verification copy and the unused idle label from the eager catalog. Keep identity-aware verification and all recovery guidance unchanged, align translation fixtures, and restore the existing merged startup budget without increasing its baseline or limits.

* fix(update): retain consent failures and isolate validation homes

Carry unresolved non-retained plugin capability refusals from missing-install
repair through post-core convergence as typed outcomes, preserving the existing
update failure and restart boundary. Keep usable retained artifacts and
transient fetch failures on their existing notice/warning paths.

Give test invocations a native process HOME before config imports and worker
creation. Preserve bounded live/profile context, report selection, installed
tool caches, and process-group/pipe-owned namespace cleanup or truthful
retention. Keep unknown or mixed explicit real-home selections closed.
Resolve the repo-owned staging helper from its owning cwd and await complete
PID readiness before cancelling native report fixtures.

Align the survivor recovery oracle with typed consent errors that intentionally
have no Doctor reason. Preserve strict plugin/code/version/core-step checks and
historical warning-only reports; successful-update admission still rejects
refusals. Keep the local TestHomeMode alias private and satisfy helper lint.

PR: #134490

* fix(plugins): preserve declared catalog identity during upgrade integration

Carry the prepared, provenance-validated ClawHub package instead of discarding
it into a boolean. Suppress the declared installed counterpart without deriving
an npm identity from overlaid display metadata or hiding an npm namesake.
Keep lazy prepared catalog facts and first-normalized-record icon behavior.

Retain explicit ClawHub-only actions and npm-first dual-source actions, and
cover the selected source's pinned inspection metadata with existing tables.
The incoming duplicate-row cases fail before the provenance fact is retained.

PR: #134490

* fix(ci): include home isolation in PR anchor closure

Register the three runtime dependencies in the canonical extraction and trust inventory. Extracted planners and publishers now load the real home policy, context, and selection modules without stubs or weaker assertions. The existing extracted-anchor regression fails before this change and the full wrapper suite passes afterward.

* fix(test): preserve source home when loading profiles

Read the explicitly selected profile with a non-login Bash command so
system and user login startup cannot replace the source HOME first.
Keep positional profile quoting, child-only HOME/USERPROFILE, existing
profile opt-in and test/native-home isolation unchanged.

The existing six profile-home matrix cases failed on Linux CI run
33536959196, job 99953769387. New exact-head Linux CI remains required;
this local repair does not refresh or admit the prior native proof.

PR: #134490

* fix(update): roll back npm candidate after Doctor failure

* fix(update): roll back npm candidate after Doctor failure

* fix(update): separate package rollback evidence

* fix(update): preserve rollback sentinel compatibility

* fix(update): keep staged Doctor service-external

* test(update): verify exact post-Doctor restoration

* test(update): narrow restored version assertion

* test(update): cover all rollback residue prefixes

* fix(update): preserve package rollback diagnostics

---------

Co-authored-by: Peter Steinberger <[email protected]>
steipete added a commit that referenced this pull request Sep 2, 2026
… plugin when its plugin entry is enabled (#136211)

* fix(plugins): honor channels.<id>.enabled=false over plugin entry enablement

A channel plugin whose channel is switched off in config
(`channels.<id>.enabled: false`) kept loading whenever
`plugins.entries.<id>.enabled: true` was also present, which is exactly the
state `openclaw plugins install @openclaw/<id>` and `openclaw plugins enable`
leave behind. Auto-enable, the Gateway startup plan, channel presence policy
and the official-external repair targets all already treat that channel flag as
an explicit disable; the shared activation decision was the one owner that did
not, so every unscoped registry load (CLI plugin registry, agent runtime loads,
outbound bootstrap) still imported the plugin.

On git-built installs of source-external plugins (discord, slack: `build.bundledDist:
false`) that import is what surfaced as startup ERROR lines: the build links
`dist/extensions/<id>/node_modules` back to `extensions/<id>/node_modules`, and
a moved or pruned checkout leaves that link dangling, so the import fails with
`Cannot find module` for a channel the operator had turned off.

- Teach the shared activation decision a closed `channel-disabled-in-config`
  cause and make the channel-config reader tri-state
  (`resolveChannelConfigEnablement`), so `channels.<id>.enabled: false` wins the
  same way `enabled: true` already opts a bundled channel in.
- When an externally distributed plugin fails to import because a module is
  missing, name the enablement path in the loader error
  (`openclaw plugins install <spec>` / `openclaw doctor --fix`) at both loader
  failure sites so `status`/`doctor` show what to do next.
- Align the stale WhatsApp repair-hint test with the npm-first install ordering
  from #134490.

Regression tests fail on pre-fix code at the activation decision and at the
loader (bundled telegram fixture with the channel disabled and the plugin entry
enabled).

* fix(plugins): report missing dependencies for externally distributed bundled plugins

Follow-up to the channel-disable activation fix, addressing review findings.

- Plugin status skipped dependency health for every bundled-origin plugin, so a
  source-external plugin (`build.bundledDist: false`) compiled into
  `dist/extensions/<id>` without its plugin-local `node_modules` never showed the
  typed "required dependencies are missing" state in `plugins list`, `status`,
  or `doctor`; the only signal was the raw import error at load time. Narrow the
  gate: bundled plugins that are distributed outside the root package now get
  dependency status like external installs.
- The activation metadata hash only fingerprinted channels with
  `enabled: true`, so adding `enabled: false` produced the same registry cache
  key as an absent flag and could reuse a registry that had already loaded the
  plugin. Serialize the boolean tri-state instead.
- Guard the missing-module cause walk in `recordPluginError`: a plugin-thrown
  error may expose a throwing `cause` accessor, and diagnostics inside a catch
  handler must not rethrow it out of the loader loop.

All four regression tests fail on the previous commit.

* test(plugins): split dependency-health snapshot cases out of the oversized status suite

* fix(plugins): verify the official package before naming its install command

The missing-dependency hint resolved the official install command from the
plugin id alone, so a foreign `build.bundledDist: false` package reusing an
official id (for example a Discord fork registered as `discord`) would be told
to install `@openclaw/discord` over itself. Resolve the catalog entry by
package name and require canonical-id equality; other externally distributed
packages get a generic reinstall/update hint instead.

The mismatched-package regression fails on the previous commit.

* fix(plugins): resolve channel disables through manifest-owned channel ids

Review follow-ups on the channel-disable activation fix:

- The activation decision resolved `channels.<id>.enabled` from the plugin id
  alone, so a plugin whose id differs from its channel key (QQ Bot documents
  `openclaw-qqbot` owning `channels.qqbot`) never saw the operator's disable.
  Thread manifest-owned channel ids from both loaders into the shared decision
  and check them before the built-in catalog mapping.
- Runtime status dropped package build metadata, so a generic source-external
  bundled plugin (`build.bundledDist: false` without an official catalog entry)
  was treated as an ordinary bundled plugin and its missing dependencies never
  surfaced in `status`/`doctor`. Carry the installed index's `packageBuild`
  into the runtime dependency-status decision.
- Guard nested error-code reads in the missing-module classifier: a nested
  error with a throwing `code` getter must not escape the loader's catch.

Every regression fails on the previous commit.

* fix(plugins): pass manifest channel ids to every activation consumer

The channel-disable decision only received manifest-owned channel ids from the
two module loaders, so metadata consumers that publish a plugin's declared
surfaces (skills, hooks, embedded settings, startup planning, presence policy,
index writes, provider inventory, public-surface access) still activated a
renamed-channel plugin such as `openclaw-qqbot` after `channels.qqbot.enabled:
false`. Pass `channels` from the manifest or installed-index record at every
call site that has one; id-only callers keep the built-in catalog mapping.

The skills regression (bundled `openclaw-demo` owning `channels.demo`) fails on
the previous commit.

* fix(plugins): honor channel disables and source-external dependency health in index and managed diagnostics

Two remaining consumers of the activation decision and dependency-status gate:

- `isInstalledPluginEnabled` evaluated a renamed-channel plugin from its id
  alone, so contribution and command-default consumers still saw
  `openclaw-qqbot` as enabled after `channels.qqbot.enabled: false`. Pass the
  index record's channel ids.
- Gateway `plugins.list` diagnostics excluded every bundled-origin plugin from
  dependency health, so an enabled `build.bundledDist: false` plugin with
  missing required dependencies was listed without its error. Use the shared
  `tracksPluginDependencyStatus` gate there too.

Both regressions fail on the previous commit.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
…openclaw#135671)

* fix(config): preserve authored references during Doctor repair

Use canonical authored projection for invalid snapshots so a legacy agent
roster can migrate without restoring the retired list or flattening includes.
Keep roster-format intent separate from explicit value edits and consume it
only after the Doctor write commits. Compare resolved Gateway modes while
retaining intentional parameter removal and ambiguous-include safeguards.

Derive plugin consent failure from its existing typed outcomes, and arm the
transient composer-cue test observer before the user action.

Follow-up to openclaw#134490. The exact repair patch and all 26 managed-review
datasets are unchanged after adopting its landed main base. Independent
P0-P2 review, 107 integration cases, and 18 real Doctor cases on this base pass.
The earlier 528 config/Doctor cases pass with those owners unchanged.
Final packaged Crabbox upgrade and autonomous repair proof remains pending.

Co-authored-by: Jason (Json) <[email protected]>

* test(update): verify npm artifacts in upgrade recovery

Validate automatic plugin recovery against the declared npm source, its
managed installation, exact version, artifact integrity, and capability
consent. Preserve selected-plugin consent deferral and the explicit
ClawHub companion audit.

Replace the stale ClawHub-only request expectation with a positive artifact
assertion and zero unexpected ClawHub requests. Exercise invalid records
and the real phase order, including macOS Bash 3.2 optional arguments.

The packaged stable-to-candidate reproduction exposed the obsolete oracle.
Focused regressions, all changed checks, and final managed review pass.
Full final-package Crabbox verification remains in progress.

Related: openclaw#134490

* test(ui): wait for draft persistence before legacy seeding

Observe the committed nonempty draft and its post-send clear before replacing current metadata with the legacy outbox fixture. This prevents navigation from aborting the clear and restoring the old text and Blob.

The native IndexedDB latency reproduction fails before the correction and passes after it. Both original legacy table cases and the changed checks pass.

* test(ui): wait for menu readiness in continuation proof

Use the shared focus-synchronized submenu helper for both desktop openings
of Continue in terminal. Keep the real action clicks, exact handoff and
clipboard assertions, reconnect retirement, and mobile pointer flow.
Both browser cases and the changed-file gate pass with a clean managed review.

Co-authored-by: Jason (Json) <[email protected]>

---------

Co-authored-by: Jason (Json) <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
…35462)

* fix(update): preserve configuration and verify upgrade recovery

Prefer npm before ClawHub only among declared plugin identities, preserving explicit source/version intent, artifact integrity and capability consent. Keep the exact installed beta cohort and require typed target absence before fallback.

Preserve authored environment references through both Doctor writers, resolve snapshot destinations at operation time, and keep migration-only metadata out of redacted snapshots. Avoid loading channel runtimes for unused pairing account facts while retaining captured migration-owner attribution.

Record activation safety at package/Git mutation boundaries. Keep installed-CLI recovery, verify runtime/native-service identity, fence Windows autostart, preserve child status, and avoid duplicating consumed notifications or rejecting completed install switches. Surface update-specific disconnect diagnostics without changing explicit-restart guidance in Model Setup.

Retain the upgrade-survivor first-hop, approval and installed-version oracles. Repair CI's type-only Doctor cycle and stale source-policy, final-Doctor and Teams whitespace expectations without weakening timeouts, gates or the main-owned Markdown fix.

PR: openclaw#134490

* test(msteams): align the corrected main whitespace fixture

* perf(ui): remove unreachable update translations

Remove superseded version-only verification copy and the unused idle label from the eager catalog. Keep identity-aware verification and all recovery guidance unchanged, align translation fixtures, and restore the existing merged startup budget without increasing its baseline or limits.

* fix(update): retain consent failures and isolate validation homes

Carry unresolved non-retained plugin capability refusals from missing-install
repair through post-core convergence as typed outcomes, preserving the existing
update failure and restart boundary. Keep usable retained artifacts and
transient fetch failures on their existing notice/warning paths.

Give test invocations a native process HOME before config imports and worker
creation. Preserve bounded live/profile context, report selection, installed
tool caches, and process-group/pipe-owned namespace cleanup or truthful
retention. Keep unknown or mixed explicit real-home selections closed.
Resolve the repo-owned staging helper from its owning cwd and await complete
PID readiness before cancelling native report fixtures.

Align the survivor recovery oracle with typed consent errors that intentionally
have no Doctor reason. Preserve strict plugin/code/version/core-step checks and
historical warning-only reports; successful-update admission still rejects
refusals. Keep the local TestHomeMode alias private and satisfy helper lint.

PR: openclaw#134490

* fix(plugins): preserve declared catalog identity during upgrade integration

Carry the prepared, provenance-validated ClawHub package instead of discarding
it into a boolean. Suppress the declared installed counterpart without deriving
an npm identity from overlaid display metadata or hiding an npm namesake.
Keep lazy prepared catalog facts and first-normalized-record icon behavior.

Retain explicit ClawHub-only actions and npm-first dual-source actions, and
cover the selected source's pinned inspection metadata with existing tables.
The incoming duplicate-row cases fail before the provenance fact is retained.

PR: openclaw#134490

* fix(ci): include home isolation in PR anchor closure

Register the three runtime dependencies in the canonical extraction and trust inventory. Extracted planners and publishers now load the real home policy, context, and selection modules without stubs or weaker assertions. The existing extracted-anchor regression fails before this change and the full wrapper suite passes afterward.

* fix(test): preserve source home when loading profiles

Read the explicitly selected profile with a non-login Bash command so
system and user login startup cannot replace the source HOME first.
Keep positional profile quoting, child-only HOME/USERPROFILE, existing
profile opt-in and test/native-home isolation unchanged.

The existing six profile-home matrix cases failed on Linux CI run
33536959196, job 99953769387. New exact-head Linux CI remains required;
this local repair does not refresh or admit the prior native proof.

PR: openclaw#134490

* fix(update): roll back npm candidate after Doctor failure

* fix(update): roll back npm candidate after Doctor failure

* fix(update): separate package rollback evidence

* fix(update): preserve rollback sentinel compatibility

* fix(update): keep staged Doctor service-external

* test(update): verify exact post-Doctor restoration

* test(update): narrow restored version assertion

* test(update): cover all rollback residue prefixes

* fix(update): preserve package rollback diagnostics

---------

Co-authored-by: Peter Steinberger <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
… plugin when its plugin entry is enabled (openclaw#136211)

* fix(plugins): honor channels.<id>.enabled=false over plugin entry enablement

A channel plugin whose channel is switched off in config
(`channels.<id>.enabled: false`) kept loading whenever
`plugins.entries.<id>.enabled: true` was also present, which is exactly the
state `openclaw plugins install @openclaw/<id>` and `openclaw plugins enable`
leave behind. Auto-enable, the Gateway startup plan, channel presence policy
and the official-external repair targets all already treat that channel flag as
an explicit disable; the shared activation decision was the one owner that did
not, so every unscoped registry load (CLI plugin registry, agent runtime loads,
outbound bootstrap) still imported the plugin.

On git-built installs of source-external plugins (discord, slack: `build.bundledDist:
false`) that import is what surfaced as startup ERROR lines: the build links
`dist/extensions/<id>/node_modules` back to `extensions/<id>/node_modules`, and
a moved or pruned checkout leaves that link dangling, so the import fails with
`Cannot find module` for a channel the operator had turned off.

- Teach the shared activation decision a closed `channel-disabled-in-config`
  cause and make the channel-config reader tri-state
  (`resolveChannelConfigEnablement`), so `channels.<id>.enabled: false` wins the
  same way `enabled: true` already opts a bundled channel in.
- When an externally distributed plugin fails to import because a module is
  missing, name the enablement path in the loader error
  (`openclaw plugins install <spec>` / `openclaw doctor --fix`) at both loader
  failure sites so `status`/`doctor` show what to do next.
- Align the stale WhatsApp repair-hint test with the npm-first install ordering
  from openclaw#134490.

Regression tests fail on pre-fix code at the activation decision and at the
loader (bundled telegram fixture with the channel disabled and the plugin entry
enabled).

* fix(plugins): report missing dependencies for externally distributed bundled plugins

Follow-up to the channel-disable activation fix, addressing review findings.

- Plugin status skipped dependency health for every bundled-origin plugin, so a
  source-external plugin (`build.bundledDist: false`) compiled into
  `dist/extensions/<id>` without its plugin-local `node_modules` never showed the
  typed "required dependencies are missing" state in `plugins list`, `status`,
  or `doctor`; the only signal was the raw import error at load time. Narrow the
  gate: bundled plugins that are distributed outside the root package now get
  dependency status like external installs.
- The activation metadata hash only fingerprinted channels with
  `enabled: true`, so adding `enabled: false` produced the same registry cache
  key as an absent flag and could reuse a registry that had already loaded the
  plugin. Serialize the boolean tri-state instead.
- Guard the missing-module cause walk in `recordPluginError`: a plugin-thrown
  error may expose a throwing `cause` accessor, and diagnostics inside a catch
  handler must not rethrow it out of the loader loop.

All four regression tests fail on the previous commit.

* test(plugins): split dependency-health snapshot cases out of the oversized status suite

* fix(plugins): verify the official package before naming its install command

The missing-dependency hint resolved the official install command from the
plugin id alone, so a foreign `build.bundledDist: false` package reusing an
official id (for example a Discord fork registered as `discord`) would be told
to install `@openclaw/discord` over itself. Resolve the catalog entry by
package name and require canonical-id equality; other externally distributed
packages get a generic reinstall/update hint instead.

The mismatched-package regression fails on the previous commit.

* fix(plugins): resolve channel disables through manifest-owned channel ids

Review follow-ups on the channel-disable activation fix:

- The activation decision resolved `channels.<id>.enabled` from the plugin id
  alone, so a plugin whose id differs from its channel key (QQ Bot documents
  `openclaw-qqbot` owning `channels.qqbot`) never saw the operator's disable.
  Thread manifest-owned channel ids from both loaders into the shared decision
  and check them before the built-in catalog mapping.
- Runtime status dropped package build metadata, so a generic source-external
  bundled plugin (`build.bundledDist: false` without an official catalog entry)
  was treated as an ordinary bundled plugin and its missing dependencies never
  surfaced in `status`/`doctor`. Carry the installed index's `packageBuild`
  into the runtime dependency-status decision.
- Guard nested error-code reads in the missing-module classifier: a nested
  error with a throwing `code` getter must not escape the loader's catch.

Every regression fails on the previous commit.

* fix(plugins): pass manifest channel ids to every activation consumer

The channel-disable decision only received manifest-owned channel ids from the
two module loaders, so metadata consumers that publish a plugin's declared
surfaces (skills, hooks, embedded settings, startup planning, presence policy,
index writes, provider inventory, public-surface access) still activated a
renamed-channel plugin such as `openclaw-qqbot` after `channels.qqbot.enabled:
false`. Pass `channels` from the manifest or installed-index record at every
call site that has one; id-only callers keep the built-in catalog mapping.

The skills regression (bundled `openclaw-demo` owning `channels.demo`) fails on
the previous commit.

* fix(plugins): honor channel disables and source-external dependency health in index and managed diagnostics

Two remaining consumers of the activation decision and dependency-status gate:

- `isInstalledPluginEnabled` evaluated a renamed-channel plugin from its id
  alone, so contribution and command-default consumers still saw
  `openclaw-qqbot` as enabled after `channels.qqbot.enabled: false`. Pass the
  index record's channel ids.
- Gateway `plugins.list` diagnostics excluded every bundled-origin plugin from
  dependency health, so an enabled `build.bundledDist: false` plugin with
  missing required dependencies was listed without its error. Use the shared
  `tracksPluginDependencyStatus` gate there too.

Both regressions fail on the previous commit.
steipete added a commit that referenced this pull request Sep 3, 2026
…7578)

Use the existing exact-pin diagnostic for unchanged official bulk updates
and dry runs. Preserve the recorded selector until the operator explicitly
changes it, including ambiguous pins created by older official syncs.
Remove no-op record-spec transformations from the canonical update owner.

Regression: four official cases fail before the repair while four third-party
controls pass. All 272 owner/sibling tests, full build, changed gate and
independent review pass. A fresh Linux baseline/candidate CLI proof preserves
both pins, reports the official newer release only after the fix, and executes
the printed selector-change command without changing the other plugin.

Production LOC: +15/-37 (net -22). Tests: +71/-35. Docs: +3/-1.
Related: #105374
Original automatic-pin producer already repaired by #134490.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 4, 2026
…nclaw#137578)

Use the existing exact-pin diagnostic for unchanged official bulk updates
and dry runs. Preserve the recorded selector until the operator explicitly
changes it, including ambiguous pins created by older official syncs.
Remove no-op record-spec transformations from the canonical update owner.

Regression: four official cases fail before the repair while four third-party
controls pass. All 272 owner/sibling tests, full build, changed gate and
independent review pass. A fresh Linux baseline/candidate CLI proof preserves
both pins, reports the official newer release only after the fix, and executes
the printed selector-change command without changing the other plugin.

Production LOC: +15/-37 (net -22). Tests: +71/-35. Docs: +3/-1.
Related: openclaw#105374
Original automatic-pin producer already repaired by openclaw#134490.
roboclaw-bot pushed a commit that referenced this pull request Nov 6, 2026
Failed-update triage now captures the operator's environment before managed candidate admission, so a coding agent installed only on the operator's PATH is still offered when the Gateway service's PATH differs. Restores the operator-environment contract from #134490 and keeps the launch confirmation from #143139.

Proof: shipped CLI on isolated Linux (Crabbox) with a running systemd Gateway: accept launches the operator-only agent, decline starts nothing, base 18bee8e reports no agent found; published 2026.11.1 upgrades to the fix with settings intact.

Co-authored-by: TorstenW <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: steipete <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 7, 2026
…aw#194058)

Failed-update triage now captures the operator's environment before managed candidate admission, so a coding agent installed only on the operator's PATH is still offered when the Gateway service's PATH differs. Restores the operator-environment contract from openclaw#134490 and keeps the launch confirmation from openclaw#143139.

Proof: shipped CLI on isolated Linux (Crabbox) with a running systemd Gateway: accept launches the operator-only agent, decline starts nothing, base ba59f83 reports no agent found; published 2026.11.1 upgrades to the fix with settings intact.

Co-authored-by: TorstenW <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: steipete <[email protected]>
maplel pushed a commit to maplel/openclaw that referenced this pull request Nov 24, 2026
…aw#194058)

Failed-update triage now captures the operator's environment before managed candidate admission, so a coding agent installed only on the operator's PATH is still offered when the Gateway service's PATH differs. Restores the operator-environment contract from openclaw#134490 and keeps the launch confirmation from openclaw#143139.

Proof: shipped CLI on isolated Linux (Crabbox) with a running systemd Gateway: accept launches the operator-only agent, decline starts nothing, base 18bee8e reports no agent found; published 2026.11.1 upgrades to the fix with settings intact.

Co-authored-by: TorstenW <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: steipete <[email protected]>

(cherry picked from commit 7c702c3)

Release adaptation: Capture invoking operator env before candidate admission, forward to interactive triage only; preserve latest target selectors, confirmation and lease cleanup ordering. Exact three authorized production paths plus real lifecycle regression.

Follow-up dispositions: ad4863d fix: preserve the running installation when an agent updates its Gateway (openclaw#201570); dc73ec0 fix: let updates finish when another tool briefly reads OpenClaw's databases (openclaw#202541); d07b530 fix: clarify PostgreSQL schema upgrades for Git installs (openclaw#202098); e60ea9f test(update): add a Git release upgrade-survivor scenario (openclaw#201956); 2ef6f7b fix(update): build and serve Git releases outside node_modules (openclaw#201917); dbc1aa0 fix: keep the openclaw command and Gateway working after updating a pnpm install (openclaw#201735); f5e7641 fix: Git checkout updates across a schema change no longer end as post-update-failed after the new release starts (openclaw#201600); 2183caf fix: Git checkout updates no longer fail before the new release starts on a schema change or a busy database (openclaw#201463); 47e8649 fix: explain why Doctor cannot restore a scheduled job’s account (openclaw#201550); 8f2cfd4 fix: remove updater-only restrictions from agent maintenance guidance; cb5cfb2 fix: keep a doubtful killed-update recovery on the repair path (openclaw#201361); 24cb734 fix: keep carried-over scheduled jobs running after updates (openclaw#200653); d1276e1 feat(doctor): check OpenClaw ID member roles and honor an optional roles default (openclaw#197785); 0a39956 fix: finish updates when another tool reads OpenClaw's databases during the update (openclaw#201330); ea1c9d5 fix(update): settle remounted package publications before admission (openclaw#201336); 66b5212 fix(update): isolate malformed retained-install markers (openclaw#201199); 7e79c83 fix: let the next update finish a killed source checkout update (openclaw#201009); d905d8a fix: let the next update finish a killed update after the machine restarted (openclaw#200994); fdf0c95 fix: let the next update finish a killed update that had already installed the new version (openclaw#200866); 0c19bcd chore(release): close out 2026.11.5 on main (openclaw#200577); a1940e0 fix(matrix): keep explicit recovery available during deferred migration (openclaw#200805); 18b4776 improve: explain package baseline drift during updates (openclaw#200802); 1ad4cad fix(doctor): reclaim macOS updater runtimes blocked by non-updater processes (openclaw#200732); 427c857 fix: keep one missing archived transcript from blocking every update (openclaw#200733); 802e3f7 fix(update): keep valid cold archives from blocking updates (openclaw#200659); 23fca1a fix: let the next update continue after a killed update when nothing is left to repair (openclaw#200680); 3afe212 fix: let Doctor publish unchanged plugin migrations in any order (openclaw#200658); f65e4db fix(doctor): reclaim runtimes blocked by unrelated Linux processes (openclaw#200657); dab086c fix(update): let candidate Doctor read plugin dependencies from the staged package (openclaw#200595); 3447bee fix(update): keep updates going when the predecessor writes during its stop (openclaw#200569); 0ce9c77 fix: let the next update settle a package publication that a killed update left behind (openclaw#200550); ae31ea3 fix(update): repair handoffs in the journal-pinned lease store (openclaw#200532); 74020ea fix: continue updates when initial SQLite capture is stale (openclaw#200328); 6747b1e feat(update): run Git checkout installs from releases behind the release link (openclaw#199706); e3f8a67 fix(state): keep completed retained agent stores out of startup upgrade (openclaw#200284); 3c512c5 fix(gateway): move managed update lease operations off the main thread (openclaw#200169); ea69fcb chore(release): close out 2026.11.4 on main (openclaw#199956); 618bf31 fix(state): bound startup upgrade copies and pruning to owned state (openclaw#199929); e4a3093 perf(update): replace the candidate canary with a runtime contract check (openclaw#198268); 5dbf569 fix(update): plugin failures never fail an update or Gateway health; 764761e fix(update): refuse missing host prerequisites in one line and record a cause per attempt; 4c4fef4 fix(ui): update dialog claims installation before progress is confirmed (openclaw#199254); 136e1f6 fix(update): retrying an update from a dev checkout is refused after a killed update (openclaw#198673); 3bd03da fix(update): avoid duplicate database copies while the Gateway is stopped (openclaw#198148); 68a839b fix: isolate held agent databases until explicit restoration (openclaw#198180); e333f7e chore(ci): drop retired test-lines allocation records (3/3) (openclaw#197657); fd6fa47 fix: converge Gateway updates with environment-only service overrides (openclaw#196371); 7cf5e75 fix: clarify split-install updates and blocked Doctor repairs (openclaw#196342); 6ff8c86 fix(update): retain lazy sqlite catalog generation (openclaw#197095); 930e1f7 fix: keep stable updates and recovery free of premature migrations (openclaw#196474); a15f737 fix: preserve external plugin data during update rehearsal (openclaw#196301); 92798ae fix: updates survive interrupted heartbeat runs (openclaw#195656); c1e55e2 fix(update): restore LaunchAgent registration after repair contention (openclaw#195406); 715c610 fix(doctor): repair retained ISO session end timestamps (openclaw#194685); 689cfc8 fix(update): reclaim dead closing triage repair leases (openclaw#194503); 86bc89e fix(doctor): keep standing Codex parameter advice out of retirement blockers (openclaw#193650); 691bc8d fix(backup): read the backup engine without copying the live database (openclaw#194234); 000542f fix(backup): backups and updates fail on slow storage when a header probe batch misses its deadline (openclaw#194239); 31a65d5 fix(update): skip --no-lazy-fetch on Git versions without it (openclaw#194198); e45e99d fix(update): preserve dev update sources in tag-only Git clones (openclaw#193109)

Validation: Baseline2 intended operator-agent failures/32 controls passed; candidate34/34passed (194058-green.log). Accept launches synthetic operator-only CLI with expected env, decline starts nothing. Isolated updater flow, not live systemd/upgrade qualification.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 6689fd575ada8fe40a9593784deac18ec73041cd)
(cherry picked from commit 92e7a9fa223b0dc35801f25f70be90b472d9a6b7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui channel: matrix Channel integration: matrix channel: msteams Channel integration: msteams channel: whatsapp-web Channel integration: whatsapp-web cli CLI command changes commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants