Repository navigation
fix(plugins): preserve workspace discovery and management ownership - #117265
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 3:11 AM ET / 07:11 UTC. ClawSweeper reviewWhat this changesThe PR makes configured default-agent workspace plugins remain discoverable, manageable, and correctly described across cold CLI, Gateway, Control UI, and persisted-registry flows. Merge readinessThis is still necessary: current Priority: P1 Review scores
Verification
How this fits togetherOpenClaw builds cold plugin metadata without importing plugin runtime code, then uses that metadata for CLI and Gateway management, Control UI inventory, status reporting, and persisted registry refresh. The configured default-agent workspace is an input to that discovery and therefore affects the plugin records visible to operators. flowchart LR
A[OpenClaw configuration] --> B[Default agent workspace]
B --> C[Cold plugin metadata]
C --> D[CLI Gateway and UI inventory]
C --> E[Plugin status report]
C --> F[Enable uninstall and refresh]
F --> G[Persisted plugin registry]
Decision needed
Why: The patch intentionally changes persisted plugin inventory behavior for existing selected-agent workspace configurations, and repository policy reserves protected-label handling for explicit maintainer judgment. Before merge
Agent review detailsSecurityNone. PR surfaceSource +34, Tests +187. Total +221 across 5 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge this focused repair after required checks finish on the reviewed head and a maintainer explicitly accepts its existing-configuration registry behavior; track alternate-state-root successful-install persistence separately if it remains needed. Do we have a high-confidence way to reproduce the issue? Yes. The pre-PR cold metadata readers omit the configured default-agent workspace even though Is this the best way to solve the issue? Yes. Passing the existing default-agent workspace through each cold metadata and registry owner is the narrowest coherent repair; surface-specific fallback discovery would duplicate workspace policy and drift. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b4636f23721a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
19cc490 to
9fbcc2d
Compare
|
Merged via squash.
|
* origin/main: (41 commits) test(ci): update memory helper routing expectation (#117295) fix(canvas): emit successful control results in JSON mode (#117297) fix(imessage): settle native inbound reply delivery (#117282) fix(agents): reject invalid UTF-8 LSP responses (#117271) fix(line): centralize card and template message alt text (#117280) fix(release): validate candidates before Docker publication (#117252) fix(media): validate provider-owned generated media downloads (#117281) fix(feishu): restore custom HTTPS API domains (#117278) fix(models): reuse prepared plugin metadata (#117131) fix(agents): stop fallback after delivered-but-failed attempts (#114628) fix(memory): reuse targeted session corpus snapshot (#117247) fix(matrix): reconcile durable sends after response loss test(release): repair full validation regressions (#116931) fix(linux-canvas): report socket watcher fallback (#109502) fix(codex): preserve authoritative turn completion (#117185) fix(canvas): preserve widgets across derived-name collisions (#117132) fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (#117206) fix(msteams): prevent duplicate final replies (#116398) fix(doctor): session SQLite restore installs an empty session index over the valid archive (#117221) fix(plugins): preserve workspace plugins across CLI and control UI (#117265) ...
…penclaw#117265) Co-authored-by: Peter Steinberger <[email protected]>
* origin/main: (41 commits) test(ci): update memory helper routing expectation (openclaw#117295) fix(canvas): emit successful control results in JSON mode (openclaw#117297) fix(imessage): settle native inbound reply delivery (openclaw#117282) fix(agents): reject invalid UTF-8 LSP responses (openclaw#117271) fix(line): centralize card and template message alt text (openclaw#117280) fix(release): validate candidates before Docker publication (openclaw#117252) fix(media): validate provider-owned generated media downloads (openclaw#117281) fix(feishu): restore custom HTTPS API domains (openclaw#117278) fix(models): reuse prepared plugin metadata (openclaw#117131) fix(agents): stop fallback after delivered-but-failed attempts (openclaw#114628) fix(memory): reuse targeted session corpus snapshot (openclaw#117247) fix(matrix): reconcile durable sends after response loss test(release): repair full validation regressions (openclaw#116931) fix(linux-canvas): report socket watcher fallback (openclaw#109502) fix(codex): preserve authoritative turn completion (openclaw#117185) fix(canvas): preserve widgets across derived-name collisions (openclaw#117132) fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (openclaw#117206) fix(msteams): prevent duplicate final replies (openclaw#116398) fix(doctor): session SQLite restore installs an empty session index over the valid archive (openclaw#117221) fix(plugins): preserve workspace plugins across CLI and control UI (openclaw#117265) ...
What Problem This Solves
Configured selected-agent workspace plugins disappeared from cold CLI and Control UI inventory, icons, Gateway enable/disable, linked uninstall, and persisted registry refresh. Valid plugin configuration schemas were also falsely reported absent. A post-commit install failure could delete an already-persisted plugin when management used a different home/state root.
Why This Change Was Made
Move selected-agent workspace ownership into the existing cold control-plane readers and persisted registry writer, carry one effective management environment through metadata, mutation, install rollback and record lookup, and derive schema availability from the manifest. No configuration surface, plugin SDK, security policy, Gateway protocol, provider policy, runtime import, or SQLite schema changes.
User Impact
Workspace plugins stay visible and manageable across Control UI, Gateway and CLI; icons resolve, enabled state survives refresh, sibling plugins survive linked uninstall, configuration support is accurately reported, and a physically installed plugin is retained after a durable post-commit failure.
Evidence