Repository navigation
Conversation
Doctor/status treated config-only default-on bundled plugins as disabled because validation omitted the manifest default that plugins list already passes. Pass enabledByDefault through the shared activation resolver. Closes openclaw#122746
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 18, 2026, 4:57 PM ET / 20:57 UTC. ClawSweeper reviewWhat this changesThis PR makes configuration validation honor each bundled plugin manifest’s default enablement, preventing false disabled warnings for config-only default-on plugins. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessNo blocking code findings: the PR fixes a real current-main inconsistency by giving validation the same manifest default-enablement fact used by plugin inventory and startup. It remains necessary; rebase or refresh the branch and obtain green exact-head checks before merge. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherPlugin manifests supply default-enablement metadata to plugin inventory and runtime startup. Configuration validation consumes the same manifest registry to produce warnings surfaced by doctor and status. flowchart LR
A[Plugin manifest] --> B[Manifest registry]
C[Operator plugin config] --> D[Configuration validation]
B --> D
D --> E[Activation decision]
E --> F[Doctor and status warnings]
B --> G[Plugin inventory]
G --> H[Plugin list output]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +4, Tests +47. Total +51 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk options
Maintainer options:
Technical reviewBest possible solution: Keep manifest default enablement as the single activation input across validation, inventory, and startup, then land this focused alignment once the refreshed branch proves clean. Do we have a high-confidence way to reproduce the issue? Yes. Current main omits default enablement at the validation resolver call, while the PR body supplies a before/after run through that producer and a default-off control case. Is this the best way to solve the issue? Yes. Passing the existing manifest fact into the shared activation resolver repairs the owner boundary without adding config, plugin-specific policy, or a second decision path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8032e6c75e01. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
|
Closing as already fixed and superseded by #126030, merged as ae55a40. Current main contains the same owner-boundary repair: plugin-config validation passes the manifest-derived enabledByDefault value into the shared activation resolver used by inventory and startup. Its regression coverage checks both a config-only default-on Canvas plugin and a default-off bundled control, so legitimate disabled-plugin warnings remain intact. No unique executable behavior or regression gap remains in this branch. Thanks @felirami for independently identifying the root cause and supplying focused two-sided regression and before/after proof. The latest published release v2026.7.1-2 predates this fix; it is fixed on current main. |
Closes #122746
What Problem This Solves
Fixes an issue where operators who configure
plugins.entries.canvaswith aconfigblock and no top-levelenabled: truewould seeopenclaw plugins listreport Canvas as enabled, whileopenclaw statusandopenclaw doctorwarned that the plugin was disabled:plugins.entries.canvas: plugin disabled (bundled (disabled by default)) but config is present.Why This Change Was Made
Plugin inventory already passes manifest default enablement into the shared activation resolver. Config validation called the same resolver without that argument, so default-on bundled plugins were classified as bundled-disabled-by-default whenever config was present without an explicit enable flag.
The fix is one pass-through on the validation owner:
enabledByDefault: isPluginEnabledByDefaultForPlatform(record), matchingplugins list/ runtime. No Canvas special case, no config-shape change, and no doctor/status warning rewrite.User Impact
Config-only entries for default-on bundled plugins such as Canvas no longer produce a false disabled warning.
plugins listand doctor/status now agree. Config-only entries for default-off bundled plugins still warn, so unused config on opt-in plugins remains visible.Evidence
Production LOC: +4 / -0 (net +4: import, invariant comment, one activation argument) | Tests: +47 / -0
The +4 production delta is the missing activation argument plus the import and a short cross-path comment. A net-zero rewrite would omit the comment or skip
enabledByDefaultOnPlatforms; list/runtime already useisPluginEnabledByDefaultForPlatform.Real behavior proof
Built and run from this PR branch. Packaged CLI
dist/was not present in this checkout, so proof uses the real doctor/status producer:validateConfigObjectWithPlugins→validateExplicitPluginConfig. That is the path that emitsplugin disabled (...) but config is present.Proof script imported
src/config/validation.tswith a tempHOMEandOPENCLAW_BUNDLED_PLUGINS_DIR=extensions, then validated:Before (parent
main, no fix):b4ffa3106f205a2beef985c9b43887d7c2a6091fnode --import tsx /tmp/canvas-enabled-by-default-proof.mjs before-fix{ "label": "before-fix", "sha": "b4ffa3106f205a2beef985c9b43887d7c2a6091f", "cases": [ { "name": "default-on canvas config-only", "pluginId": "canvas", "ok": true, "warningCount": 1, "warnings": [ { "path": "plugins.entries.canvas", "message": "plugin disabled (bundled (disabled by default)) but config is present" } ] }, { "name": "default-off workboard config-only", "pluginId": "workboard", "ok": true, "warningCount": 1, "warnings": [ { "path": "plugins.entries.workboard", "message": "plugin disabled (bundled (disabled by default)) but config is present" } ] } ] }After (this PR head):
2a603ba0572c55c6a0732e63f4f156b78b694f84node --import tsx /tmp/canvas-enabled-by-default-proof.mjs after-fix{ "label": "after-fix", "sha": "2a603ba0572c55c6a0732e63f4f156b78b694f84", "cases": [ { "name": "default-on canvas config-only", "pluginId": "canvas", "ok": true, "warningCount": 0, "warnings": [] }, { "name": "default-off workboard config-only", "pluginId": "workboard", "ok": true, "warningCount": 1, "warnings": [ { "path": "plugins.entries.workboard", "message": "plugin disabled (bundled (disabled by default)) but config is present" } ] } ] }List/runtime already pass
enabledByDefault(src/plugins/loader-cli-registry.ts). After this change, validation uses the same fact, so doctor/status no longer contradictplugins listfor config-only Canvas.Focused tests
Regression test failed on pre-fix
mainfor the intended reason (Canvas config-only still warned), then passed on this head:Follow-up (not in this PR)
src/plugins/bundle-commands.tsalso omitsenabledByDefaultwhen resolving activation. That path loads Claude bundle commands, not doctor/status warnings, so it is a sibling follow-up rather than this warning invariant.src/commands/channel-setup/trusted-catalog.tsuses the activation result only for workspacesource === "auto"trust, not bundled default-on doctor warnings.Testing
node scripts/run-vitest.mjs src/config/config.plugin-validation.test.tsnode scripts/run-vitest.mjs src/plugins/config-state.test.tsb4ffa3106f205a2beef985c9b43887d7c2a6091f→2a603ba0572c55c6a0732e63f4f156b78b694f84)