You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support atomic Sandbox identity preconditions for ExecSandbox #5872
A controller may prepare Sandbox A and later execute a short activation command. ExecSandbox and ExecSandboxInteractive currently select by Workspace and Sandbox name. If A is deleted or replaced under that name before execution, the command can run in replacement B. A request UUID prevents duplicate launch but does not assert that the named Sandbox is the instance or process generation previously prepared by the controller.
Please support an optional expected immutable Sandbox ID and supervisor/main-process instance or generation in both Exec APIs. Validate them atomically during admission and bind the relay to that exact instance; reject mismatches before starting the command or delivering stdin. Preserve durable request-ID semantics. Include a regression in which Sandbox A is prepared, replaced by B at the same name, and the activation request for A fails without executing in B; also cover a process generation change within one Sandbox.
Repeating my comment from #5794 as it applies here also:
A workspace is, by design, a namespace. Users and processes sharing that workspace need to coordinate resource naming and lifecycle, including when names can be reused.
In the example given, the underlying problem is B deleting and recreating a sandbox under a name A is still using. The proposed change would detect one consequence of uncoordinated name reuse, but it would not address the underlying problem.
Reliable concurrent use of the API requires workspace users to coordinate resource naming and reuse.
Activity
grs commentedon Nov 23, 2026
Repeating my comment from #5794 as it applies here also:
A workspace is, by design, a namespace. Users and processes sharing that workspace need to coordinate resource naming and lifecycle, including when names can be reused.
In the example given, the underlying problem is B deleting and recreating a sandbox under a name A is still using. The proposed change would detect one consequence of uncoordinated name reuse, but it would not address the underlying problem.
Reliable concurrent use of the API requires workspace users to coordinate resource naming and reuse.