Repository navigation
fix(config): dedupe missing official plugin warnings - #84227
Conversation
|
Codex review: needs maintainer review before merge. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
Summary Reproducibility: yes. for the duplicate warning shape: current PR rating Rank-up moves:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. Real behavior proof Risk before merge
Maintainer options:
Next step before merge Security Review detailsBest possible solution: Land the narrow validator-level dedupe after maintainer review, then let the linked issue close on merge or keep a follow-up if default startup still materializes Yuanbao without user config. Do we have a high-confidence way to reproduce the issue? Yes for the duplicate warning shape: current Is this the best way to solve the issue? Yes, the validator-level set is the narrow maintainable fix for duplicate generic official install hints, and it preserves removed-plugin, blocked-plugin, generic stale-plugin, and custom memory-slot wording paths. Label changes:
Label justifications:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 88d8d6af9336. |
|
@clawsweeper re-review Added real runtime proof to the PR body. The new proof runs |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
ClawSweeper PR egg ✨ Hatched: 🌱 uncommon Sunspot Diff Drake Rarity: 🌱 uncommon. What is this egg doing here?
|
Summary
yuanbaoappearing in bothplugins.entriesandplugins.allow.Fixes #84192.
Verification
node scripts/run-vitest.mjs src/config/config.plugin-validation.test.ts -t "deduplicates|official external memory slot"node scripts/run-vitest.mjs src/config/plugin-auto-enable.channels.test.tsnode node_modules/@typescript/native-preview/bin/tsgo.js --noEmit --pretty false -p tsconfig.jsongit diff --check -- src/config/validation.ts src/config/config.plugin-validation.test.ts/mnt/c/src/claws-hapi/.agents/skills/autoreview/scripts/autoreview --parallel-tests "node scripts/run-vitest.mjs src/config/config.plugin-validation.test.ts -t \"deduplicates|official external memory slot\" && node scripts/run-vitest.mjs src/config/plugin-auto-enable.channels.test.ts"Note:
node scripts/run-vitest.mjs src/config/config.plugin-validation.test.tscurrently fails in this WSL/Node 24 worktree on six fixture-loader cases unrelated to this patch (does not auto-allow config-loaded overrides..., plugin config diagnostics, voice-call schema diagnostics, and plugin heartbeat targets). The changed regression subset and adjacent plugin auto-enable file pass.Real behavior proof
Behavior addressed: A missing official external plugin referenced in both
plugins.entries.<id>andplugins.allownow emits one install-hint warning instead of duplicate warnings for the same missing plugin id.Real environment tested: WSL-local OpenClaw source checkout on PR head
2e69db0a.Exact steps or command run after this patch: Created a temporary
openclaw.jsoncontaining bothplugins.entries.yuanbao.enabled=trueandplugins.allow=["yuanbao"], then ranOPENCLAW_HOME=<tmp>/home OPENCLAW_STATE_DIR=<tmp>/state OPENCLAW_CONFIG_PATH=<tmp>/state/openclaw.json node --import tsx src/entry.ts doctor --non-interactive --yes --no-workspace-suggestions.Evidence after fix: The real doctor config preflight emitted one missing-plugin install hint for
yuanbao:Observed result after fix: The runtime doctor path reported only the first actionable warning path,
plugins.entries.yuanbao, for the duplicatedyuanbaoconfig surfaces. It did not emit a second generic install-hint warning forplugins.allow.What was not tested: A live Windows/Bun startup using the reporter's exact default config path; this proof exercises the same runtime doctor config preflight path that reports config warnings before doctor repairs run.