Repository navigation
refactor(plugins)!: remove experimental workspaces plugin - #110416
Conversation
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 40eceaf81f
ℹ️ 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".
| if (dryRun) { | ||
| return { changes: [`Would remove retired Workspaces plugin state at ${target}.`], effects }; | ||
| } | ||
| await rm(target, { force: true, recursive: true }); |
There was a problem hiding this comment.
Guard against deleting live workspaces
If an existing install has agents.defaults.workspace or an agent-specific workspace set to <stateDir>/workspaces, this new doctor repair treats that user workspace as retired plugin state because detection only checks that the directory exists, and openclaw doctor --fix recursively removes it here. Since configured agent workspaces are arbitrary user paths resolved from config, the repair should first prove the directory is the retired plugin store (for example by matching plugin-owned sentinel files and excluding configured workspace dirs) or remove only known plugin-owned artifacts.
Useful? React with 👍 / 👎.
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 5:47 AM ET / 09:47 UTC. Summary Reproducibility: yes. from source and the current-head review: create retired Workspaces state, run ordinary Review metrics: 1 noteworthy metric.
Stored data model 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:
Copy recommended automerge instructionNext step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Keep removal of the unshipped plugin, but make normal Doctor visibly report the retired state and reserve deletion for the explicit repair path; attach a redacted before/after Doctor transcript proving detection, dry-run behavior, and safe cleanup. Do we have a high-confidence way to reproduce the issue? Yes, from source and the current-head review: create retired Workspaces state, run ordinary Is this the best way to solve the issue? No: deleting retired state is reasonable, but the repair must first be visible in the normal Doctor report so beta users can understand what Full review comments:
Overall correctness: patch is incorrect AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against a941d3ab727e. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat 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
Review history (4 earlier review cycles)
|
ccd114d to
eb6e5dd
Compare
6c6dcef to
90c0453
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 90c04535ba
ℹ️ 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".
| const { note } = await loadNoteModule(); | ||
| // Settle retired-plugin state cleanup (may replace ctx.cfg) before the | ||
| // legacy-state detect/migrate pair reads the config. | ||
| await runCoreContributionHealthRepair(ctx, ["core/doctor/removed-workspaces-state"]); |
There was a problem hiding this comment.
Surface retired state before repairing it
When users run openclaw doctor without --fix/--yes, this new cleanup never reports the stale Workspaces state: runDoctorHealthContributions() calls the custom runLegacyStateHealth() path, and runCoreContributionHealthRepair() returns immediately when ctx.prompter.shouldRepair is false. That means the destructive state removal has no normal doctor warning or dry-run preview even though the check defines a finding/fix hint; add a structured contribution or explicitly render the new check before repair so users can see what doctor --fix will delete.
Useful? React with 👍 / 👎.
|
Merged via squash.
|
…10416) * refactor(plugins)!: remove experimental workspaces plugin * fix(doctor): remove retired workspaces plugin state * refactor(doctor): settle retired-workspaces cleanup before legacy-state detect * chore(i18n): leave workflow-owned locale artifacts to the locale refresh * ci: retrigger after GitHub scheduling outage
…10416) * refactor(plugins)!: remove experimental workspaces plugin * fix(doctor): remove retired workspaces plugin state * refactor(doctor): settle retired-workspaces cleanup before legacy-state detect * chore(i18n): leave workflow-owned locale artifacts to the locale refresh * ci: retrigger after GitHub scheduling outage
What Problem This Solves
The experimental
workspacesplugin (agent-composable dashboard tabs) is being replaced by a core session-dashboard feature (design:docs/web/dashboard-architecture.md, landing in follow-up PRs). The plugin never shipped in a stable release (first appeared in the 2026.7.2 betas,enabledByDefault: false), so carrying it forward would mean migrating an unshipped surface.Why This Change Was Made
Clean removal ahead of the replacement keeps the codebase lean per repo policy: no compat shims for unshipped experiments. Good parts (pure grid math, bridge security model, byte-frozen approval) are harvested by design into the new core feature, not kept as live code.
User Impact
openclaw doctor --fixnow removes its stale<stateDir>/workspaces/state (warning + repair, dry-run aware).Evidence
node scripts/check-changed.mjsfull Testbox gate green (typecheck, lint, i18n, import cycles, boundaries); plugin inventory + docs map regenerated via their generators (--checkclean).