Skip to content

refactor(plugins)!: remove experimental workspaces plugin - #110416

Merged
steipete merged 5 commits into
mainfrom
claude/dashboard-remove-workspaces
Jul 18, 2026
Merged

steipete merged 5 commits into
mainfrom
claude/dashboard-remove-workspaces

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The experimental workspaces plugin (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

  • Beta users who manually enabled the experimental plugin lose the Workspaces tab; openclaw doctor --fix now removes its stale <stateDir>/workspaces/ state (warning + repair, dry-run aware).
  • No stable-release behavior changes. Docs page and nav entry removed.

Evidence

  • −20,829 / +~240 lines; 71 files deleted (plugin, UI lib/widgets/styles, e2e, docs, i18n keys + TM entries across all locales).
  • Focused suites green: doctor state-check + health-contributions, bundled-plugin metadata, plugin-page, control-ui i18n (159/159 + follow-up run).
  • node scripts/check-changed.mjs full Testbox gate green (typecheck, lint, i18n, import cycles, boundaries); plugin inventory + docs map regenerated via their generators (--check clean).
  • Leftover-reference audit: zero hits for retired plugin identifiers/RPCs/tools; remaining "workspace(s)" matches are the unrelated agent-workspace/WorkBoard concepts.
  • Autoreview clean (removal bundle reviewed via focused safe bundle due to the secret-scanner deleted-fixture false positive; doctor delta reviewed normally).

@steipete
steipete requested a review from a team as a code owner July 18, 2026 04:49
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui plugin: workspaces Agent-composable Workspaces plugin labels Jul 18, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jul 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/workspaces/package.json
  • pnpm-lock.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: 90c04535ba411a1e5a48856d564bcb2f5b8bc7e1
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Jul 18, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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 });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 18, 2026
@clawsweeper

clawsweeper Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 5:47 AM ET / 09:47 UTC.

Summary
The PR removes the experimental bundled Workspaces plugin, its Control UI/docs/dependency surfaces, and adds Doctor cleanup for retired Workspaces state.

Reproducibility: yes. from source and the current-head review: create retired Workspaces state, run ordinary openclaw doctor, and observe that the check is not surfaced until the repair-oriented path. A local runtime reproduction was not possible in the read-only review environment.

Review metrics: 1 noteworthy metric.

  • Retirement cleanup surface: 1 new core Doctor cleanup path. This single path controls deletion of persisted beta state after a 17k-line plugin removal, so its detection and repair semantics are disproportionately important.

Stored data model
Persistent data-model change detected: database schema: extensions/workspaces/src/default-workspace.ts, database schema: extensions/workspaces/src/manifest.test.ts, database schema: extensions/workspaces/src/scaffold.ts, database schema: extensions/workspaces/src/schema.ts, database schema: ui/src/e2e/workspace-chart.e2e.test.ts, database schema: ui/src/e2e/workspace-full-bleed.e2e.test.ts, and 15 more. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🦐 gold shrimp
Result: blocked until real behavior proof from a real setup is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Make the retired-state finding appear during ordinary Doctor runs before repair.
  • [P1] Add redacted terminal evidence showing detection, dry-run-safe behavior, and explicit cleanup of representative retired state.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The PR reports tests and CI but provides no inspectable redacted after-fix Doctor terminal output, log, recording, or artifact proving visible detection and safe cleanup; add that evidence and update the PR body for re-review, redacting private paths and identifiers.

Risk before merge

  • [P1] A user running ordinary openclaw doctor cannot see the retired-state finding before openclaw doctor --fix removes the Workspaces directory, weakening informed recovery for manually enabled beta installations.
  • [P1] Removing a bundled plugin and its persisted state remains upgrade-sensitive for beta users until the visible detection and repair behavior are demonstrated on a realistic state directory.

Maintainer options:

  1. Expose retirement state before deletion (recommended)
    Add a normal Doctor contribution or equivalent non-repair report so users can see the retired path before --fix removes it.
  2. Accept repair-only cleanup intentionally
    Land the removal only after an owner explicitly accepts the missing normal Doctor warning for manually enabled beta users.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Add a normal Doctor finding for detected retired Workspaces state, retain explicit repair-only deletion, add focused coverage for non-repair reporting and dry-run behavior, and attach redacted after-fix terminal proof.

Next step before merge

  • [P1] The remaining blocker is a protected, owner-level decision about beta-state retirement semantics plus contributor-supplied runtime proof; do not route it to automated repair.

Maintainer decision needed

  • Question: Should retirement of the unshipped Workspaces beta include core Doctor cleanup for manually enabled users, with an ordinary Doctor finding before the explicit repair deletes state?
  • Rationale: The implementation choice affects beta-user recovery and deletion semantics; tests cannot determine the intended product policy for visible warning versus silent repair-only cleanup.
  • Likely owner: steipete — The supplied commit history connects this contributor directly to the removal and Doctor-retirement design.
  • Options:
    • Require visible detection before repair (recommended): Show a normal Doctor finding and dry-run-safe repair preview, then allow --fix to remove only the retired plugin state.
    • Keep repair-only cleanup: Accept that users learn about the retired state only when invoking the repair path and document that deliberate behavior.

Security
Cleared: The dependency and lockfile changes remove the Workspaces importer and its existing dependency edges; the supplied diff shows no added dependency, execution path, permission, or secret-handling surface.

Review findings

  • [P2] Surface retired state before repairing it — src/flows/doctor-removed-workspaces-state-check.ts:1
Review details

Best 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 openclaw doctor, and observe that the check is not surfaced until the repair-oriented path. A local runtime reproduction was not possible in the read-only review environment.

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 --fix will remove.

Full review comments:

  • [P2] Surface retired state before repairing it — src/flows/doctor-removed-workspaces-state-check.ts:1
    Ordinary openclaw doctor does not report this check when repair is disabled, so users cannot see what doctor --fix will delete. Render the detected retired-state finding in the non-repair contribution path and keep deletion behind the explicit repair path.
    Confidence: 0.93

Overall correctness: patch is incorrect
Overall confidence: 0.86

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against a941d3ab727e.

Label changes

Label changes:

  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🧂 unranked krab, so this older rating label is no longer current.

Label justifications:

  • P1: The PR can remove persisted state for manually enabled beta users and currently lacks visible pre-repair reporting.
  • merge-risk: 🚨 compatibility: It removes a bundled plugin, its CLI/UI/docs surfaces, and manually enabled beta-user behavior.
  • merge-risk: 🚨 session-state: The new Doctor path removes the plugin's persisted Workspaces state.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR reports tests and CI but provides no inspectable redacted after-fix Doctor terminal output, log, recording, or artifact proving visible detection and safe cleanup; add that evidence and update the PR body for re-review, redacting private paths and identifiers.
Evidence reviewed

What I checked:

  • Doctor integration: The PR registers removedWorkspacesStateCheck among converted core Doctor checks, making retired-state handling part of the core Doctor path. (src/flows/doctor-core-checks.ts:1135, 90c04535ba41)
  • Unresolved current-head review: A review on the current head identifies that ordinary openclaw doctor does not surface the retired Workspaces state before the repair-only path removes it, so the intended warning is not observable without --fix. (src/flows/doctor-removed-workspaces-state-check.ts:1, 90c04535ba41)
  • Compatibility statement: The PR body acknowledges that beta users who manually enabled Workspaces lose the tab and that Doctor removes <stateDir>/workspaces/, which makes clear reporting and repair scope merge-relevant. (src/flows/doctor-core-checks.ts:1135, 90c04535ba41)
  • Proof gap: The body reports focused tests and a Testbox gate, but contains no inspectable redacted terminal output, recording, runtime log, or artifact showing the before/after Doctor behavior on retired state. (90c04535ba41)

Likely related people:

  • steipete: Authored the five supplied commits that remove the Workspaces surface and add the Doctor retirement path; repository-history inspection was unavailable in this read-only environment. (role: current removal contributor; confidence: medium; commits: 12c391fa8ba3, c30cbca87a95, 83f44c14619b; files: extensions/workspaces, src/flows/doctor-core-checks.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • 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.
Review history (4 earlier review cycles)
  • reviewed 2026-07-18T05:35:42.507Z sha 40eceaf :: needs real behavior proof before merge. :: [P1] Protect configured workspaces from doctor cleanup
  • reviewed 2026-07-18T06:42:50.121Z sha eb6e5dd :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-18T07:19:13.435Z sha 6c6dcef :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-18T08:01:12.129Z sha 6c6dcef :: needs real behavior proof before merge. :: none

@steipete
steipete force-pushed the claude/dashboard-remove-workspaces branch from ccd114d to eb6e5dd Compare July 18, 2026 06:32
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 18, 2026
@steipete
steipete force-pushed the claude/dashboard-remove-workspaces branch from 6c6dcef to 90c0453 Compare July 18, 2026 09:37

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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"]);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 18, 2026
@steipete
steipete merged commit a068d38 into main Jul 18, 2026
130 of 132 checks passed
@steipete
steipete deleted the claude/dashboard-remove-workspaces branch July 18, 2026 09:56
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 19, 2026
…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
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. plugin: workspaces Agent-composable Workspaces plugin rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant