fix: warn when previously installed plugin disappears from discovery (#91873)#94983
fix: warn when previously installed plugin disappears from discovery (#91873)#94983jincheng-xydt wants to merge 1 commit into
Conversation
When a plugin like Slack is externalized from bundled to npm, the upgrade path can silently drop it from the installed plugin index with no diagnostic output. Users only discover the issue when the channel stops working. Add a console.warn when a previously-installed plugin is no longer found in the current discovery results, including the previous path and a hint about plugins.allow. Fixes openclaw#91873 Co-Authored-By: Claude <[email protected]>
|
Codex review: needs real behavior proof before merge. Reviewed June 19, 2026, 10:43 AM ET / 14:43 UTC. Summary PR surface: Source +10. Total +10 across 1 file. Reproducibility: yes. source-level: current main still requires non-bundled configured channel owners to be explicitly trusted/enabled, and this PR's warning is in an installed-index inspection helper that normal gateway startup does not call. I did not run a live Slack upgrade reproduction. Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Implement either a maintainer-approved compatibility/migration path or a startup/status blocked-channel diagnostic fed by prepared gateway plugin facts, then prove it with redacted upgrade or startup output before closing the canonical issue. Do we have a high-confidence way to reproduce the issue? Yes, source-level: current main still requires non-bundled configured channel owners to be explicitly trusted/enabled, and this PR's warning is in an installed-index inspection helper that normal gateway startup does not call. I did not run a live Slack upgrade reproduction. Is this the best way to solve the issue? No. The patch is a plausible diagnostic in the wrong layer; the maintainable fix belongs in startup/status blocked-channel reporting or a maintainer-approved compatibility migration. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 51ebe87a09bb. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +10. Total +10 across 1 file. View PR surface stats
What I checked:
Likely related people:
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. How this review workflow works
|
|
Closing this PR as ClawSweeper identified the warning is in the wrong layer. |
Description
When a plugin like Slack is externalized from bundled to npm package, the upgrade path can silently drop it from the installed plugin index with no diagnostic output. Users only discover the issue when the channel stops responding. This change adds a warning when a previously-installed plugin is no longer found in the current discovery results.
Changes
src/plugins/installed-plugin-index-invalidation.ts: Add console.warn when a previously-installed plugin disappears from discovery, including the previous path and a hint about plugins.allow configuration.Related Issue
Fixes #91873
AI Assistance
This PR was created with assistance from AI (Claude Code).
Real behavior proof
Behavior or issue addressed: When a previously-installed plugin (e.g. Slack after externalization) disappears from the plugin discovery results, the diffInstalledPluginIndexInvalidationReasons function silently marks it as "source-changed" with no warning. Users only notice when the channel stops working.
Real environment tested: Code review of the installed-plugin-index-invalidation.ts logic. The fix adds a warning diagnostic at the point where a disappeared plugin is detected.
Exact steps or command run after the patch:
When a plugin that was in the previous index is not found in the current discovery results, a warning is now emitted:
After-fix evidence:
Observed result after fix:
What was not tested: Full integration test simulating the Slack externalization upgrade path.