Repository navigation
fix(workers): remote sessions preserve destination and access policy - #130148
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Merged via squash.
|
This was referenced Aug 26, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 27, 2026
…penclaw#130148) * fix(workers): preserve remote placement and delegated authority * test(commands): preserve filesystem exports in deletion mocks
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.
What Problem This Solves
Fixes an issue where users starting a session against a remembered paired node, automatic remote node, or cloud worker could briefly run it locally before their saved destination finished restoring. Fixes an issue where visible and hidden spawned agents silently discarded their parent's read-only, guarded, workspace, or Full Access policy, causing either unauthorized escalation or unexpected approval alerts. Resolves paired-node Docker workers surviving cancellation after claiming capacity, plus incomplete workspace-transfer cleanup when one sibling fails.
Why This Change Was Made
Placement restoration, delegated session authority, node-supervisor cancellation, and workspace-transfer lifetime each have their own canonical owner. This repair carries the already-prepared trusted parent permission policy through both spawn paths, lets each child own its correct workspace root, fences new-session submission until the actual saved remote destination is restored, binds post-claim cancellation to the exact launch identity before opening the worker start gate, and drains all transfer contexts before removing shared scratch. Dead supervisor persistence bookkeeping and duplicate policy fields are removed rather than adding alternate execution paths or suppressing size guards.
User Impact
Saved remote sessions never silently execute on the local machine while their environment catalog is loading. Every delegated child preserves its parent's chosen access level, including Full Access without spurious approval alerts, while cross-agent children remain scoped to their own workspace. Cancelling an in-flight Docker worker launch releases its actual container and capacity, and shutdown no longer strands staged workspace-transfer files after a sibling failure.
Evidence
Failing before the repair:
runningwith a surviving container and occupied slot.Passing after the repair:
Before selecting the actual paired node:
After two actual Docker-backed turns with Full Access and no approval alerts:
Complete sanitized real-browser, paired-node, and Docker execution recording:
[email protected]