Skip to content

Support exec and restart in Windows MXC ProcessContainer sandboxes #5913

In progress

Description

@kjlubick

User Story

I use OpenShell on Windows to run and test workloads in MXC ProcessContainer sandboxes. I need to run another command in a Ready sandbox and restart a sandbox while keeping its workspace.

Problem Statement

Running an additional command in a Ready ProcessContainer sandbox fails. Restarting a stopped sandbox is unsupported.

Impact / Why This Matters

Impact / Why This Matters

Recreating the sandbox for each command interrupts the workload and forces me to repeat setup.

Acceptance Criteria

Support the existing openshell sandbox exec <name> --no-tty -- <program> [args...] and openshell sandbox start <name> commands on Windows x64 and ARM64 ProcessContainer. PR #5859 implements this scope. Isolation Session remains tracked in #5468.

Reproduction Steps

  1. On Windows, select a native OpenShell gateway configured to use MXC ProcessContainer.

  2. Create a sandbox named mxc-repro with a long-running startup command. Wait until openshell sandbox list shows it as Ready.

  3. Run a second command in the same sandbox and check its exit code.

    openshell sandbox exec mxc-repro --no-tty -- 'C:\Windows\System32\cmd.exe' /d /c 'echo hello from MXC&exit /b 7'
    $LASTEXITCODE

    Expected output is hello from MXC with exit code 7. On the affected build, exec reports SSH access is not configured for this supervisor.

  4. Place a marker file in the sandbox workspace, then stop the sandbox.

    openshell sandbox stop mxc-repro
  5. Once the sandbox shows Stopped, start it again.

    openshell sandbox start mxc-repro

    The sandbox should return to Ready with the marker file still present. On the affected build, start returns Unimplemented.

Suggested UX (if applicable)

No response

Environment

Windows x64 and ARM

Logs

Activity

  1. added theissue type on Nov 23, 2026
  2. added
    state:triage-needed
    on Nov 23, 2026
  3. added
    os:windows
    state:accepted
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    os:windowsstate:acceptedstate:triage-needed

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions