Repository navigation
Conversation
Declare singleAccountKeysToMove on the line and mattermost setup adapters and opt both channels into setupFeatures.configPromotion, so the doctor single-account promotion resolver can see their channel-specific account keys (line: channelAccessToken, channelSecret, tokenFile, secretFile; mattermost: botToken, baseUrl). Without declarations the resolver treats these as uncovered root keys and defers the legacy migration whenever a named account exists, leaving credentials stranded at the channel root. Follows the channel-owned declaration pattern from openclaw#112293. Co-Authored-By: Claude <[email protected]>
|
🦞👀 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 6, 2026, 4:43 PM ET / 20:43 UTC. ClawSweeper reviewWhat this changesRestores Doctor’s LINE and Mattermost credential promotion, discovers installed plugins’ existing setup declarations, and preserves complete plugin migration inventories. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful fix: current main and the latest release lack the required declarations. The updated branch addresses installed-plugin discovery and the earlier TypeBox concern, with recorded Doctor behavior evidence and no identified blocking defect. Priority: P2 Review scores
Verification
How this fits togetherDoctor repairs saved OpenClaw configuration and installation state. It reads plugin-owned migration declarations, moves eligible legacy credentials into account configuration, and preserves the inventory needed for subsequent repairs. flowchart TD
A[Saved channel configuration] --> C[Doctor repair]
B[Plugin manifests and install records] --> D[Setup declarations and migration inventory]
D --> C
C --> E{Eligible account promotion}
E --> F[Credentials in default account]
E --> G[Preserved policy and existing accounts]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -131, Tests +189, Docs 0, Config +6, Other -1. Total +63 across 18 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep credential ownership in plugin declarations and let Doctor apply them through one validated discovery path while retaining complete migration inventory and existing account policy. Do we have a high-confidence way to reproduce the issue? Yes: named accounts plus undeclared root credentials reach Doctor’s uncovered-key deferral on current main. Source establishes that path; this review did not execute it. Is this the best way to solve the issue? Yes: the branch reuses the existing setup contract and validated loader, and removes the inventory projection responsible for incomplete migration ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f6c36b651f43. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Evidence that the P1 describes a pre-existing discovery-layer gap, not a patch-scope defect — this PR's shape is identical to the 11 precedents merged in #112293:
Extending installed discovery to ordinary declarations is a core change to the same owner where Maintainer call: land the precedent-consistent declarations now, or hold for a combined declarations+discovery change. |
|
Thanks @wangmiao0668000666! Proof: Real
Exact-head CI passed. Independent code review found no blocking issue. The proof covers configuration repair; no live channel sends or package publication are claimed. |
…ig-ref * origin/main: (31 commits) docs(web): split the Control UI page into task pages (#140437) fix: tool_search rejects calls that send both query and queries (#140310) fix(update): preserve rollback and truthful serving reports (#140419) fix: restore context when CLI recovery starts a fresh session (#140294) refactor(tests): retain transport-driven auth dismissal coverage (#140430) fix: stop unfinished subagents before resetting a conversation (#140417) fix(models): cap configured output at the final context window (#140436) refactor(mcp): reuse transport config normalization (#140439) test(gateway): preserve saved config in auth reload fixture (#140433) fix(plugins): inherit active config for embedded agent runs (#140435) refactor(tui): remove test-only shutdown timer hooks (#140432) fix(agents): preserve channel silent-reply guidance (#138345) fix(tasks): cancel resumed yielded subagent tasks (#140410) refactor(doctor): share compaction config traversal (#140330) fix(doctor): restore LINE and Mattermost account promotion (#136045) docs: remove the empty release-sections nav group (#140427) fix(tooling): omit Codex machine squash credit (#140420) chore(ui): refresh control ui locales (#140384) refactor(plugin-sdk): reuse native approval input contracts (#140415) fix: silent model WebSocket streams hang past the idle timeout (#140335) ... # Conflicts: # docs/web/control-ui.md
|
Thanks @obviyus for the thorough merge writeup and for landing this! Really appreciate the before/after breakdown — calling out the partial-inventory failure mode alongside the credential-promotion fix made the scope of the repair much clearer. Also glad the precedent-consistent shape landed cleanly; the installed-discovery follow-up is now properly scoped for the owner that already owns Picking up the installed-path extension as a follow-up to keep line/mattermost discoverable through the same channel as the 11 merged precedents. |
…136045) Restore credential-only account promotion through plugin-owned setup declarations and validated discovery for bundled and installed plugins. Preserve complete Doctor plugin inventory and recover existing partial indexes so repeated repairs finish normally. Verified full-build and ordinary npm-installed CLI behavior, retained partial-index recovery, and independent behavior acceptance across 50 Doctor runs. Preserve named accounts, default conflicts, root policy, disabled settings, sibling promotion, and secret-free output. Co-authored-by: Ayaan Zaidi <[email protected]>
* fix(doctor): preserve complete plugin inventory Backport the plugin inventory repair from #136045 without the unrelated LINE and Mattermost setup changes. * chore: prepare extended-stable 2026.7.35
Fixes #136854.
What Problem This Solves
Fixes an issue where operators running
openclaw doctor --fixwith named LINE or Mattermost accounts would leave legacy credentials stranded at the channel root. Ordinary installed plugins could not supply their promotion declarations to Doctor.Why This Change Was Made
LINE and Mattermost now declare their account credential keys, and Doctor reads those declarations through the same validated setup-entry loader for bundled and installed plugins. Credential-only promotion preserves channel-wide policy.
Doctor also keeps the complete plugin inventory when initializing its registry. Migration planning discovers complete ownership from canonical install records, so an existing partial index cannot cause a later Doctor run to refuse its own migration plan.
User Impact
Doctor moves supported credentials into
accounts.defaultonce, preserves named accounts and existing default-account conflicts, and retains root policy and disabled settings. Existing partial plugin indexes recover through the normal Doctor refresh.Evidence
d8922d310b00; affected promotion behavior was checked through main3d602cd4172f.515a6024e90apasses the same full-build and ordinary npm-installed cases. The installed candidate packages were packed from actual compiled plugin output and installed through normal npm-spec commands in an isolated fixture registry.The proof covers Doctor configuration behavior. It does not claim live channel sends or publication of the candidate plugin packages. Rejected setup fixtures and all earlier failed attempts are retained with the complete private evidence.