Skip to content

fix(sandbox): isolate runtimes by workspace - #115766

Merged
vincentkoc merged 1 commit into
mainfrom
fix/sandbox-workspace-scope-51363-20260729
Jul 29, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/sandbox-workspace-scope-51363-20260729

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Closes #51363
Related: #96866

What Problem This Solves

Fixes an issue where co-hosted OpenClaw workspaces that reuse the same agent or session key could converge on one non-shared sandbox runtime, exposing the wrong workspace through Docker, browser, SSH, OpenShell, or plugin-provided sandbox state.

Why This Change Was Made

Non-shared sandbox identity now includes a hash of the resolved agent workspace path at the canonical layout boundary, then carries that scope through every backend. Shared scope remains workspace-independent. Backend-specific names retain enough workspace identity within Docker, SSH, OpenShell, and MXC naming limits.

Existing non-shared runtimes are intentionally not adopted. The first use after upgrade creates workspace-qualified runtimes; old entries can age out through pruning or be removed with the existing exact-key/all recreate flows.

This replaces the closed, uneditable contributor PR #96866 while preserving Tayoun's co-author credit.

User Impact

Operators can run multiple isolated workspaces or instances on one host without same-named agents sharing non-shared sandbox containers, remote workspaces, browser state, or plugin backend state.

Evidence

@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 29, 2026 08:16
@vincentkoc
vincentkoc requested a review from a team as a code owner July 29, 2026 08:16
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime docker Docker and sandbox tooling agents Agent runtime and tooling extensions: openshell plugin: mxc size: M maintainer Maintainer-authored PR labels Jul 29, 2026
@vincentkoc
vincentkoc force-pushed the fix/sandbox-workspace-scope-51363-20260729 branch from 2ea78dc to 8915179 Compare July 29, 2026 08:23
Qualify non-shared sandbox identities by resolved workspace while preserving shared runtime names. Existing non-shared runtimes reset once under the new identity.

Related: #51363

Co-authored-by: Tayoun <[email protected]>
@vincentkoc
vincentkoc force-pushed the fix/sandbox-workspace-scope-51363-20260729 branch from 8915179 to 17d8bd8 Compare July 29, 2026 08:35
@openclaw-barnacle openclaw-barnacle Bot added the commands Command implementations label Jul 29, 2026
@vincentkoc
vincentkoc merged commit 30346f9 into main Jul 29, 2026
121 of 123 checks passed
@vincentkoc
vincentkoc deleted the fix/sandbox-workspace-scope-51363-20260729 branch July 29, 2026 08:50
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 29, 2026
…ft-ingestion

* origin/main:
  fix(feishu): reject unsupported initial document content (#115697)
  feat(media): probe duration and dimensions for playback metadata (#115728)
  fix(sandbox): scope runtimes by workspace (#115766)
  fix(ui): guide users through missing or broken AI setup (#115716)
  fix(sessions): return direct-agent replies to their active session (#115756)
  fix(zalo): stop provider startup after gateway shutdown (#115763)
  fix(agents): bound completed background process retention (#115760)
  fix(plugins): bound hook execution and retire stale registrations (#115695)
  fix(ui): collapse custodian startup error gap (#115720)
  fix(gateway): reload edited hook transforms (#107875)
  refactor: centralize channel streaming config hints (#115739)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
Qualify non-shared sandbox identities by resolved workspace while preserving shared runtime names. Existing non-shared runtimes reset once under the new identity.

Related: openclaw#51363

Co-authored-by: Tayoun <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
…ft-ingestion

* origin/main:
  fix(feishu): reject unsupported initial document content (openclaw#115697)
  feat(media): probe duration and dimensions for playback metadata (openclaw#115728)
  fix(sandbox): scope runtimes by workspace (openclaw#115766)
  fix(ui): guide users through missing or broken AI setup (openclaw#115716)
  fix(sessions): return direct-agent replies to their active session (openclaw#115756)
  fix(zalo): stop provider startup after gateway shutdown (openclaw#115763)
  fix(agents): bound completed background process retention (openclaw#115760)
  fix(plugins): bound hook execution and retire stale registrations (openclaw#115695)
  fix(ui): collapse custodian startup error gap (openclaw#115720)
  fix(gateway): reload edited hook transforms (openclaw#107875)
  refactor: centralize channel streaming config hints (openclaw#115739)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: openshell gateway Gateway runtime maintainer Maintainer-authored PR plugin: mxc size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Docker sandbox container name collision across multiple instances on same host

1 participant