Repository navigation
feat(openshell): support control-plane workspace selection - #114952
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 10:26 AM ET / 14:26 UTC. ClawSweeper reviewWhat this changesAdds an optional Merge readinessKeep this PR open for maintainer review. The re-review patch resolves the two prior blockers: the optional setting preserves ambient OpenShell workspace selection when absent, and the SSH configuration test now proves that a workspace-qualified proxy route survives endpoint augmentation; the contributor also supplied detailed after-fix live proof. Because this adds a compatibility-sensitive plugin configuration surface and the PR carries the protected Priority: P2 Review scores
Verification
How this fits togetherThe bundled OpenShell plugin turns OpenClaw sandbox requests into OpenShell CLI lifecycle, execution, transfer, and SSH-connection operations. This setting is parsed from plugin configuration, added to the shared CLI argument prefix only when configured, and then carried by OpenShell into the generated SSH proxy route. flowchart LR
A[Plugin configuration] --> B[Workspace validation]
B --> C[Shared OpenShell CLI arguments]
C --> D[Sandbox lifecycle and transfers]
D --> E[Generated SSH configuration]
E --> F[Sandbox command execution]
G[Ambient OpenShell workspace] --> C
Decision needed
Why: Both choices are viable, but they define the permanent operator experience for a plugin configuration that otherwise causes all OpenShell operations to fail on older installed CLIs. Before merge
Agent review detailsSecurityNone. PR surfaceSource +28, Tests +41, Docs +36. Total +105 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Accept the opt-in workspace setting only after an OpenShell/OpenClaw owner confirms that documented minimum-version support is sufficient or asks for a narrow actionable preflight, then merge with the exact-head CI failure understood and resolved. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds an opt-in capability rather than repairing an established failing behavior. The contributor nevertheless supplied a detailed exact-head live validation path for the new behavior. Is this the best way to solve the issue? Unclear pending owner intent: the shared CLI argument path is the narrowest implementation and the re-review tests cover the earlier regressions, but maintainers must choose whether documentation alone is an adequate unsupported-version boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9feb6ad16187. 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 (1 earlier review cycle)
|
Signed-off-by: sallyom <[email protected]>
e813193 to
0863781
Compare
|
Addressed both findings in
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
wrt last P1, no fix necessary:
No code changes made; the worktree remains clean. |
|
Ready for merge at 08637816ab52. Clean review and green CI. This is the best narrow fix for updating the OpenShell plugin to support OpenShell Workspaces while preserving existing behavior when no workspace is configured. |
|
Merged via squash.
|
* origin/main: (61 commits) perf(ui): debounce event-driven session list refreshes and right-size child paging (openclaw#115374) feat(talk): support GPT-Live realtime voice over ChatGPT OAuth (openclaw#115226) feat(system-agent): guide gateway configuration in Ask OpenClaw (openclaw#115363) fix(agents): make overflow recovery append-only via branch-and-reappend (openclaw#115271) (openclaw#115310) fix(macos): bound websocket ping so a dropped pong cannot orphan its continuation (openclaw#115362) fix(codex): isolate native hook relay startup (openclaw#115078) fix(ci): stop reviving superseded pull request workflows (openclaw#115378) feat(openshell): add workspace selection (openclaw#114952) fix(skills): persist workshop apply reason; correct Skill Workshop docs (openclaw#114471) fix: agent stops replying when a session transcript has no header row (openclaw#115080) perf(usage): stale-while-revalidate caches for usage.status and sessions.usage (openclaw#115369) fix(discord): reject invalid UTF-8 probe responses (openclaw#111734) feat(gateway): add memory.search operator method (openclaw#115346) fix(android): keep welcome action reachable with large text (openclaw#111747) fix(gateway): validate doctor memory agent ids (openclaw#115365) refactor: harden shell completion and shard Control UI E2E (openclaw#115332) fix(ui): anchor the thread branches menu to its trigger button (openclaw#115352) perf(sessions): incremental snapshot revalidation and shallow list projections (openclaw#115359) refactor(sessions): consolidate entry state (openclaw#115299) feat(ui): swap three plain Lobsterdex palettes for balloon, ascii, and portal (openclaw#115308) ...
Signed-off-by: sallyom <[email protected]>
What Problem This Solves
OpenShell now supports control-plane Workspaces, but the OpenClaw sandbox plugin could only use the OpenShell CLI's ambient or default Workspace. Users could not explicitly place OpenClaw-managed sandboxes, providers, policies, and inference routes in an existing non-default OpenShell Workspace.
Why This Change Was Made
This adds a validated
plugins.entries.openshell.config.workspacesetting. When configured, the plugin passes--workspace <name>to every OpenShell CLI operation. OpenShell v0.0.88 and newer serialize that selection into the generated SSH host alias andssh-proxy --workspace <name>route, so lifecycle calls, command execution, and transfers resolve the same Workspace.When the setting is omitted, OpenClaw passes no new flag or environment override. Existing installations therefore retain their ambient
OPENSHELL_WORKSPACEbehavior, including OpenShell'sdefaultfallback when no ambient selection exists.The change keeps OpenShell's control-plane Workspace separate from OpenClaw's existing mirror/remote filesystem workspace modes. It does not create Workspaces, manage membership, migrate existing sandboxes, or add per-agent/per-session selection.
AI-assisted implementation; I reviewed the resulting code and behavior.
User Impact
Users can explicitly run OpenClaw sandboxes in an existing non-default OpenShell Workspace. Existing configurations are unchanged. Configuring
workspace, including explicitly selectingdefault, requires OpenShell v0.0.88 or newer.Evidence
main.0.0.92with a local Podman-backed gateway athttps://127.0.0.1:17670using mTLS.defaultandopenclaw-testwere active, then configured the plugin withworkspace: "openclaw-test".openai/gpt-5.5. Structured output reportedagentHarnessId: "codex",authMode: "auth-profile", and no model fallback.{ "name": "oc-dd4c3a6956c1e9d6", "phase": "Ready", "workspace": "openclaw-test" }The same
sandbox listcommand returned[]for--workspace default.--workspace openclaw-testreturned/sandbox/workspace-route-proof.txtwith exact contentsWORKSPACE_ROUTE_OK.UI screenshot:

node scripts/check-changed.mjspassed on Blacksmith Testbox (run), including formatting, config/env ratchets, plugin boundaries, extension production/test typechecks, extension lint, database-first guards, and runtime import-cycle checks.git diff --checkpassed.patch is correctwith confidence0.94.