Repository navigation
fix(plugins): surface setup-required warnings in chat installs - #123727
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 12:13 PM ET / 16:13 UTC. ClawSweeper reviewWhat this changesReturns redacted persistence warnings from managed plugin installation so chat and administrative installs explain when a plugin remains disabled pending configuration. Regression provenancePossible regression — probable (reproduction; reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep open. Current main still drops the setup-required warning on chat installs; this maintainer-labeled PR repairs the shared owner boundary with focused coverage and real Gateway proof, pending normal exact-head merge checks. Priority: P2 Review scores
Verification
How this fits togetherChat plugin commands call the plugin management service, which installs and persists plugin configuration before composing an operator reply. This change carries safe setup warnings back through that shared service while detailed diagnostics remain on the terminal path. flowchart LR
A[Chat plugin install] --> B[Plugin management service]
B --> C[Plugin source installer]
C --> D[Plugin configuration persistence]
D --> E[Redacted setup warning]
E --> B
B --> F[Operator reply]
D --> G[Terminal diagnostics]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -1, Tests +9. Total +8 across 5 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 optionsMaintainer options:
Technical reviewBest possible solution: Keep the shared managed-install result as the sole handoff for safe persistence warnings, then merge after the branch is refreshed as needed and exact-head checks are green. Do we have a high-confidence way to reproduce the issue? Yes. Current source proves the persistence warning is generated but omitted from the managed-install result that chat renders, and the linked report supplies a focused isolated Gateway scenario. Is this the best way to solve the issue? Yes. Returning producer-authored safe warnings through the shared service result fixes chat and administrative consumers while avoiding a chat-only reconstruction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2bc1699a37fb. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Closes #123726
What Problem This Solves
Fixes an issue where operators installing a plugin through chat would see only a successful install/restart message when required configuration kept that plugin disabled.
Why This Change Was Made
Managed source installation now owns collection of producer-authored, redacted persistence warnings and returns them through its existing result. Chat and administrative installation consume that same result, while detailed terminal diagnostics stay on the terminal path and source/private paths or markers never enter returned warnings.
This removes the administrative caller's separate persistence-warning reconstruction. No config shape, default, protocol, plugin SDK, or public API changes.
Production LOC: +15/-16 (net -1) | Tests: +36/-27 (net +9)
User Impact
When required plugin configuration is missing,
/plugins installnow explains that the plugin remains disabled and tells the operator to configure it before runningopenclaw plugins enable <plugin-id>.Evidence
enabled: falsestate: https://github.com/openclaw/openclaw/actions/runs/31813879390