Skip to content

fix(config): dedupe missing official plugin warnings - #84227

Merged
giodl73-repo merged 1 commit into
mainfrom
fix-config-dedupe-missing-plugin-warnings-84192
May 19, 2026
Merged

giodl73-repo merged 1 commit into
mainfrom
fix-config-dedupe-missing-plugin-warnings-84192

Conversation

@giodl73-repo

@giodl73-repo giodl73-repo commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Deduplicate repeated official external plugin install-hint warnings by normalized plugin id.
  • Keep the first actionable config path, while preserving generic stale-plugin warnings, removed-plugin warnings, blocked-plugin warnings, and memory-slot-specific wording.
  • Add regression coverage for yuanbao appearing in both plugins.entries and plugins.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.ts
  • node node_modules/@typescript/native-preview/bin/tsgo.js --noEmit --pretty false -p tsconfig.json
  • git 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.ts currently 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> and plugins.allow now 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.json containing both plugins.entries.yuanbao.enabled=true and plugins.allow=["yuanbao"], then ran OPENCLAW_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:

head: 2e69db0a
config: plugins.entries.yuanbao + plugins.allow[0]=yuanbao
yuanbao_install_warning_count: 1
warning_line: │  - plugins.entries.yuanbao: plugin not installed: yuanbao — install the  │

Observed result after fix: The runtime doctor path reported only the first actionable warning path, plugins.entries.yuanbao, for the duplicated yuanbao config surfaces. It did not emit a second generic install-hint warning for plugins.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.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels May 19, 2026
@clawsweeper

clawsweeper Bot commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

Workflow note: Future ClawSweeper reviews update this same comment in place.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

Summary
This PR deduplicates repeated official external missing-plugin install-hint warnings by normalized plugin id during config validation and updates regression coverage for Brave, memory-lancedb, and Yuanbao plugins.entries plus plugins.allow cases.

Reproducibility: yes. for the duplicate warning shape: current main independently validates missing ids from plugins.entries and plugins.allow, and the existing test expected both warning paths. The exact Windows/Bun default config materialization was not live-reproduced in this read-only review.

PR rating
Overall: 🐚 platinum hermit
Proof: 🐚 platinum hermit
Patch quality: 🦞 diamond lobster
Summary: The patch is small and well targeted with sufficient runtime proof, with only the reporter's exact Windows/Bun default-startup path left unverified.

Rank-up moves:

  • If maintainers want closure confidence for the linked issue's default-startup wording, ask for or run one exact Windows/Bun startup check before landing.
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
Sufficient (live_output): The PR body now includes copied live runtime output from the doctor config preflight path showing one Yuanbao missing-plugin warning after the patch.

Risk before merge

  • The contributor's runtime proof exercises the doctor config preflight with an explicit temporary config; the exact Windows/Bun default-startup path from the linked issue remains unverified.

Maintainer options:

  1. Decide the mitigation before merge
    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.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge
No ClawSweeper repair is needed; the remaining action is maintainer review and merge/issue-closure judgment for a protected-label PR.

Security
Cleared: The diff only changes config validation logic and colocated tests; it does not touch dependencies, CI, package resolution, secrets, or code-execution surfaces.

Review details

Best 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 main independently validates missing ids from plugins.entries and plugins.allow, and the existing test expected both warning paths. The exact Windows/Bun default config materialization was not live-reproduced in this read-only review.

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:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body now includes copied live runtime output from the doctor config preflight path showing one Yuanbao missing-plugin warning after the patch.
  • add rating: 🐚 platinum hermit: Current PR rating is 🐚 platinum hermit because proof is 🐚 platinum hermit, patch quality is 🦞 diamond lobster, and The patch is small and well targeted with sufficient runtime proof, with only the reporter's exact Windows/Bun default-startup path left unverified.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body now includes copied live runtime output from the doctor config preflight path showing one Yuanbao missing-plugin warning after the patch.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a normal user-facing config-warning bug with limited blast radius and no reported runtime failure.
  • rating: 🐚 platinum hermit: Current PR rating is 🐚 platinum hermit because proof is 🐚 platinum hermit, patch quality is 🦞 diamond lobster, and The patch is small and well targeted with sufficient runtime proof, with only the reporter's exact Windows/Bun default-startup path left unverified.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body now includes copied live runtime output from the doctor config preflight path showing one Yuanbao missing-plugin warning after the patch.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body now includes copied live runtime output from the doctor config preflight path showing one Yuanbao missing-plugin warning after the patch.

What I checked:

  • Current duplicate-warning path: Current main validates missing plugin ids from plugins.entries and plugins.allow independently, so the same missing official external plugin can currently produce two install-hint warnings. (src/config/validation.ts:1608, 88d8d6af9336)
  • Existing test expected both warning paths: The current test fixture for missing configured official external plugins expects the same install hint at both plugins.entries.brave and plugins.allow, confirming the pre-patch duplicate behavior is covered in tests. (src/config/config.plugin-validation.test.ts:318, 88d8d6af9336)
  • PR implementation: The PR adds a missingOfficialPluginWarningIds set and skips later generic official install-hint warnings for the same normalized id, while bypassing the dedupe for custom missingMessage cases such as memory-slot wording. (src/config/validation.ts:1608, 2e69db0a5ef5)
  • PR regression coverage: The PR updates the Brave and memory-lancedb expectations to count one generic install hint and adds a Yuanbao entries-plus-allow regression for the linked report. (src/config/config.plugin-validation.test.ts:318, 2e69db0a5ef5)
  • Yuanbao catalog mapping: The official external channel catalog maps channel id yuanbao to package [email protected], matching the linked warning text and the added regression expectation. (scripts/lib/official-external-channel-catalog.json:45, 88d8d6af9336)
  • Real behavior proof in PR body: The PR body now includes copied runtime output from openclaw doctor against a temporary config containing both plugins.entries.yuanbao and plugins.allow, with yuanbao_install_warning_count: 1. (2e69db0a5ef5)

Likely related people:

  • giodl73-repo: Recent merged history includes config-validation changes in src/config/validation.ts and the official memory-slot warning PR, so this account is connected to the affected validator path beyond authoring this PR. (role: recent area contributor; confidence: high; commits: ff871e162aaf, d1787b73db66, 0204c522bb65; files: src/config/validation.ts, src/config/config.plugin-validation.test.ts)
  • scoootscooob: Recent main history shows a plugin-diagnostics validation change touching the same config validation and test surface. (role: recent adjacent contributor; confidence: medium; commits: 5a7b861ea291; files: src/config/validation.ts, src/config/config.plugin-validation.test.ts)
  • steipete: Recent history includes config-validation cleanup and final memory-slot warning work adjacent to this warning behavior. (role: recent area contributor; confidence: medium; commits: 1426112f9561, 4f4d10863916; files: src/config/validation.ts, src/config/config.plugin-validation.test.ts)

Codex review notes: model gpt-5.5, reasoning high; reviewed against 88d8d6af9336.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels May 19, 2026
@giodl73-repo

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Added real runtime proof to the PR body. The new proof runs openclaw doctor --non-interactive --yes --no-workspace-suggestions against a temporary config containing both plugins.entries.yuanbao and plugins.allow: ["yuanbao"] on PR head 2e69db0a, and records exactly one plugin not installed: yuanbao install-hint warning from the runtime doctor config preflight path.

@clawsweeper

clawsweeper Bot commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels May 19, 2026
@clawsweeper

clawsweeper Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

✨ Hatched: 🌱 uncommon Sunspot Diff Drake

        .--^^^^--.           
     .-'  o    o  '-.        
    /       \__/      \      
   |    /\  ____  /\   |     
   |   /  \/____\/  \  |     
    \  \_.------._/  /       
     '._  `----'  _.'        
        '-.____.-'           
       _/|_|  |_|\_          
      /__|      |__\         
       .-----------.         
      '-------------'        

Rarity: 🌱 uncommon.
Trait: hums during re-review.
Image traits: location diff observatory; accessory lint brush; palette plum, gold, and soft gray; mood sparkly; pose holding its accessory up for inspection; shell paper lantern shell; lighting calm overcast light; background soft code-shaped tiles.
How to hatch it: once this PR reaches status: 👀 ready for maintainer look or status: 🚀 automerge armed, the PR author or a maintainer can comment @clawsweeper hatch to turn this ASCII egg into its generated creature image.
Share on X: post this hatch
Copy: My PR egg hatched a 🌱 uncommon Sunspot Diff Drake in ClawSweeper.

What is this egg doing here?
  • Eggs appear after the PR passes real-behavior proof. It is here for vibes, not verdicts: it does not change labels, ratings, merge decisions, or automation.
  • The shell reacts to review momentum: open follow-up work warms it up, re-review makes it wobble, and a clean final review lets it hatch.
  • Hatchable usually means sufficient real-behavior proof, no blocking P0/P1/P2 findings, no security attention needed, and clean correctness.
  • The hatch is seeded from this repository and PR number, so the same PR keeps the same creature; the reviewed head SHA can only change safe visual details.
  • Rarity is just collectible sparkle: 🥚 common, 🌱 uncommon, 💎 rare, ✨ glimmer, and 🌈 legendary.

@giodl73-repo
giodl73-repo merged commit 68c5a89 into main May 19, 2026
168 of 177 checks passed
@giodl73-repo
giodl73-repo deleted the fix-config-dedupe-missing-plugin-warnings-84192 branch May 19, 2026 23:44
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
galiniliev pushed a commit to galiniliev/openclaw that referenced this pull request May 25, 2026
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Duplicate missing plugin warnings for yuanbao (plugins.entries and plugins.allow)

1 participant