Skip to content

[codex] Fix missing channel plugin diagnostics - #77559

Closed
steipete wants to merge 1 commit into
mainfrom
codex/fix-plugin-config-diagnostics
Closed

steipete wants to merge 1 commit into
mainfrom
codex/fix-plugin-config-diagnostics

Conversation

@steipete

@steipete steipete commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Treat missing catalog-backed plugins.entries.* channel plugins as repairable installs instead of stale config.
  • Keep plugins.allow on the existing stale-config warning path because openclaw doctor --fix does not repair allow-only references.
  • Use neutral plugin not installed wording so third-party catalog entries are not labeled as OpenClaw-official.
  • Add regression coverage for Discord and WhatsApp upgrade-style config.

Root Cause

After bundled channel plugins were externalized, upgraded configs can still contain valid plugins.entries.discord or plugins.entries.whatsapp references while the plugin package is absent from the current manifest registry. Validation previously treated those entries the same as truly stale plugin IDs and told users to remove valid config, even though doctor already has an install repair path for missing configured plugin entries.

Behavior Change

For missing installable plugin entries, config validation now reports:

plugin not installed: discord (Discord; run openclaw doctor --fix or openclaw plugins install @openclaw/discord; config preserved)

Unknown or allow-only plugin references still use the old stale-config warning, avoiding a repair suggestion that doctor cannot complete.

Verification

  • pnpm test src/config/config.plugin-validation.test.ts -- --reporter=dot
  • pnpm test src/commands/doctor/shared/missing-configured-plugin-install.test.ts src/commands/doctor/shared/stale-plugin-config.test.ts -- --reporter=dot
  • pnpm exec oxfmt --check --threads=1 src/config/validation.ts src/config/config.plugin-validation.test.ts
  • git diff --check
  • pnpm changed:lanes --json
  • pnpm check:changed

Notes

Blacksmith Testbox changed-gate attempts did not reach repo commands because both fresh leases shut down while queued: tbx_01kqtga2jvntf4ft6vdzxrkwpb, tbx_01kqtgbp3r99jr04v5zfte47nf. Local pnpm check:changed initially exposed a stale local dependency tree missing web-tree-sitter; pnpm install repaired node_modules with no tracked file changes, then pnpm check:changed passed.

Fixes #77483

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels May 4, 2026
@steipete
steipete marked this pull request as ready for review May 4, 2026 22:10
@steipete
steipete force-pushed the codex/fix-plugin-config-diagnostics branch from e65333e to ea908ac Compare May 4, 2026 22:10
@clawsweeper

clawsweeper Bot commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Keep open for maintainer handling: the PR has a protected maintainer label, while current main already contains the central missing-plugin diagnostic work through merged follow-up PRs and this branch is now conflicting, missing real behavior proof, and still has a repairability-boundary bug.

Root-cause cluster
Relationship: superseded
Canonical: #77502
Summary: This PR overlaps the missing official external plugin diagnostic fixed by the merged canonical PR; later doctor wording, channel-status repair hints, and warning-dedupe PRs are follow-ups or adjacent refinements rather than unique remaining work for this branch.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Canonical path: Close this PR as superseded by #77502.

So I’m closing this here and keeping the remaining discussion on #77502.

Review details

Best possible solution:

Close this PR as superseded by #77502.

Do we have a high-confidence way to reproduce the issue?

Yes by source inspection: the PR branch marks all missing plugins.entries.* values as doctor-repairable, while doctor skips globally disabled plugins and entries with enabled: false. I did not run a live CLI repro in this read-only review.

Is this the best way to solve the issue?

No. Current main's merged implementation plus follow-up repair-hint work is the better path; this branch would need a rebase and an effective-enable or doctor-repairability guard before it could be safe.

Security review:

Security review cleared: No concrete security or supply-chain concern found; the diff changes config diagnostic text, tests, and a changelog line only.

AGENTS.md: found and applied where relevant.

What I checked:

Likely related people:

  • vincentkoc: Authored the implementation commit in the canonical validation PR, authored the merged doctor wording follow-up, and later merged broader missing external plugin repair surfacing. (role: current diagnostic and doctor messaging contributor; confidence: high; commits: 7bb69e17a200, 0131343db8c6, f482e4d3359c; files: src/config/validation.ts, src/config/config.plugin-validation.test.ts, src/commands/doctor/shared/missing-configured-plugin-install.ts)
  • Patrick-Erichsen: Merged the canonical validation PR and doctor wording follow-up, and commented on this PR that the follow-up likely closed it out. (role: reviewer and merger; confidence: medium; commits: b3e42bf32792, 0131343db8c6; files: src/config/validation.ts, src/config/config.plugin-validation.test.ts, src/commands/doctor/shared/missing-configured-plugin-install.ts)
  • hclsys: Opened the merged PR that implemented the catalog-backed missing-plugin install hint for the linked diagnostic regression. (role: canonical fix proposer; confidence: medium; commits: b3e42bf32792; files: src/config/validation.ts, src/config/config.plugin-validation.test.ts, CHANGELOG.md)
  • giodl73-repo: Authored and merged the later warning-deduplication refinement in the same config validation path. (role: recent adjacent contributor; confidence: medium; commits: 68c5a892d05f; files: src/config/validation.ts, src/config/config.plugin-validation.test.ts)

Codex review notes: model internal, reasoning high; reviewed against 010b61746379.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ea908ac594

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/config/validation.ts
Comment on lines +1542 to +1545
pushMissingPluginIssue(`plugins.entries.${pluginId}`, pluginId, {
warnOnly: true,
doctorRepairable: true,
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Avoid doctor repair hints for disabled plugin entries

This marks every missing plugins.entries.* value as repairable, but openclaw doctor --fix intentionally skips disabled plugin entries and returns no configured IDs when plugins.enabled === false in collectConfiguredPluginIds. In configs such as plugins.entries.discord.enabled: false or globally disabled plugins, validation now tells users to run doctor to reinstall a plugin that doctor will not touch, instead of keeping the stale-config warning path.

Useful? React with 👍 / 👎.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

I believe #77613 closes this out.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 14, 2026
@steipete

steipete commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded. #77502 landed the catalog-backed missing-plugin install diagnostic; later current-main follow-ups own repair hints and warning dedupe. This conflicted branch also retains the older repairability-boundary bug.

@steipete steipete closed this Jul 5, 2026
@shakkernerd
shakkernerd deleted the codex/fix-plugin-config-diagnostics branch October 19, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

2 participants