Skip to content

fix(plugins): surface setup-required warnings in chat installs - #123727

Merged
steipete merged 1 commit into
mainfrom
fix/autoqa25-plugin-setup-warning
Aug 14, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/autoqa25-plugin-setup-warning

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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 install now explains that the plugin remains disabled and tells the operator to configure it before running openclaw plugins enable <plugin-id>.

Evidence

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete steipete self-assigned this Aug 14, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Aug 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 14, 2026, 12:13 PM ET / 16:13 UTC.

ClawSweeper review

What this changes

Returns redacted persistence warnings from managed plugin installation so chat and administrative installs explain when a plugin remains disabled pending configuration.

Regression provenance

Possible regression — probable (reproduction; reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep 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
Reviewed head: 9df65f0cb5f623f21adf88d82962a388c00da2d4

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-boundary repair with meaningful regression coverage, redaction checks, and real after-fix Gateway proof.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The PR provides an after-fix isolated QA Gateway and qa-channel artifact that exercises the visible instruction and persisted disabled state.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The PR provides an after-fix isolated QA Gateway and qa-channel artifact that exercises the visible instruction and persisted disabled state.
Evidence reviewed 6 items Current-main defect: Persistence creates the safe configuration instruction, but the managed source installer returns only the installed result and config; chat therefore has no persistence warning to render.
Existing chat consumer: The chat install path already appends warnings returned by the managed source result, so returning the safe persistence warnings fixes the observable reply without a chat-specific policy path.
Shared-boundary repair: The branch collects only producer-authored management messages during persistence, returns de-duplicated warnings in the canonical source-install result, and has administrative installation consume that result instead of reconstructing warnings itself.
Findings None None.
Security None None.

How this fits together

Chat 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]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind main and required checks are still incomplete; merge only from a clean current-head result after the normal refresh and exact-head gates.
  • Complete next step (P2) - The protected maintainer label requires explicit merge handling; refresh the branch if needed and use the normal exact-head checks before landing.
Agent review details

Security

None.

PR surface

Source -1, Tests +9. Total +8 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 2 15 16 -1
Tests 3 36 27 +9
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 51 43 +8

Review metrics

Metric Value Why it matters
Production versus test delta production +15/-16 (net -1); tests +36/-27 (net +9) The repair removes caller-side warning reconstruction while adding boundary coverage for visible chat output and warning redaction.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #123726
Summary: This PR is the concrete candidate repair for the linked report's omitted setup instruction.

Members:

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

Merge-risk options

Maintainer options:

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

Technical review

Best 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.

Labels

Label changes:

  • add P2: A chat install can safely persist a plugin disabled yet omit the action needed to make it usable; the impact is bounded to installs missing required configuration.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR provides an after-fix isolated QA Gateway and qa-channel artifact that exercises the visible instruction and persisted disabled state.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR provides an after-fix isolated QA Gateway and qa-channel artifact that exercises the visible instruction and persisted disabled state.

Label justifications:

  • P2: A chat install can safely persist a plugin disabled yet omit the action needed to make it usable; the impact is bounded to installs missing required configuration.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR provides an after-fix isolated QA Gateway and qa-channel artifact that exercises the visible instruction and persisted disabled state.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR provides an after-fix isolated QA Gateway and qa-channel artifact that exercises the visible instruction and persisted disabled state.

Evidence

What I checked:

  • Current-main defect: Persistence creates the safe configuration instruction, but the managed source installer returns only the installed result and config; chat therefore has no persistence warning to render. (src/plugins/install-persistence.ts:489, 2bc1699a37fb)
  • Existing chat consumer: The chat install path already appends warnings returned by the managed source result, so returning the safe persistence warnings fixes the observable reply without a chat-specific policy path. (src/auto-reply/reply/commands-plugins-install.ts:80, 9df65f0cb5f6)
  • Shared-boundary repair: The branch collects only producer-authored management messages during persistence, returns de-duplicated warnings in the canonical source-install result, and has administrative installation consume that result instead of reconstructing warnings itself. (src/plugins/management-service.ts:1109, 9df65f0cb5f6)
  • Redaction and regression coverage: Changed tests cover chat rendering, administrative result propagation, terminal diagnostics, and exclusion of private paths and markers from returned warnings. (src/plugins/install-persistence.warning-sink.test.ts:111, 9df65f0cb5f6)
  • History and release scope: Blame and pickaxe history attribute the affected current-main path to this commit; it is on main but no release tag contains it, so the reported regression is current-main-only. (src/plugins/management-service.ts:1201, 38379a9a2ee1)
  • After-fix behavior proof: The PR body links an isolated built QA Gateway plus qa-channel run that observed the configure/enable instruction and persisted enabled:false state after the repair. (9df65f0cb5f6)

Likely related people:

  • steipete: Current-main blame attributes the persistence, service, and chat-install behavior to Peter Steinberger, and this PR continues that same owner-boundary repair. (role: feature introducer and recent area contributor; confidence: high; commits: 38379a9a2ee1, 9df65f0cb5f6; files: src/plugins/install-persistence.ts, src/plugins/management-service.ts, src/auto-reply/reply/commands-plugins-install.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

@steipete
steipete merged commit e74671d into main Aug 14, 2026
185 checks passed
@steipete
steipete deleted the fix/autoqa25-plugin-setup-warning branch August 14, 2026 16:24
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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]: Chat plugin installs hide required setup warnings

1 participant