Repository navigation
fix(sandbox): isolate runtimes by workspace - #115766
Merged
Merged
Conversation
vincentkoc
marked this pull request as ready for review
July 29, 2026 08:16
vincentkoc
force-pushed
the
fix/sandbox-workspace-scope-51363-20260729
branch
from
July 29, 2026 08:23
2ea78dc to
8915179
Compare
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
force-pushed
the
fix/sandbox-workspace-scope-51363-20260729
branch
from
July 29, 2026 08:35
8915179 to
17d8bd8
Compare
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
tbx_01kype3c42dasbwec0y0f34y5x: https://github.com/openclaw/openclaw/actions/runs/30433642622pnpm check:changed: passed, including core/extension typechecks, lint, dead-export scans, plugin boundaries, import cycles, and database/runtime guards.oxfmt,oxlint, andgit diff --check: passed.