Codemini-CLI icon indicating copy to clipboard operation
Codemini-CLI copied to clipboard

Windows: sandbox-backed command execution fails with microsandbox ≥ 0.6.10

Open allabouturmind opened this issue 3 months ago • 1 comments

Summary On Windows, Codemini users with the sandbox enabled may see all sandboxed commands fail to start. This is not a Codemini-only bug; it comes from a regression in the bundled microsandbox runtime on Windows hosts.

Upstream report: superradcompany/microsandbox#1426

Impact on Codemini Codemini uses microsandbox as the preferred VM sandbox backend (sandbox.backend: microsandbox / VM mode). On Windows there is no OS-level sandbox fallback when the VM backend fails, so affected users typically see:

Tool/shell commands that should run in the sandbox refusing to run or failing during VM startup Errors along the lines of the sandbox exiting before the agent relay is available (e.g. “sandbox process exited … before agent relay became available”) msb doctor may still look healthy, which makes the failure easy to misread as a local misconfiguration Linux/macOS are not affected the same way; the upstream issue reports the same microsandbox versions working on Linux/KVM.

Root cause (upstream) Per microsandbox#1426:

Works: microsandbox v0.6.9 Broken on Windows: v0.6.10+ (including v0.6.12) Regression is tied to guest bootstrap timing on the Windows host path (introduced around v0.6.10 / #1375) Recent Codemini releases that depend on microsandbox ^0.6.10 / 0.6.12 can therefore ship a Windows-broken sandbox stack to both new installs and existing users after npm update.

Workarounds (until you are on a fixed Codemini release) Upgrade Codemini once a release is published that pins microsandbox to a Windows-working version (expected: 0.6.9).

npm update -g codemini-cli

or

npm install -g codemini-cli@latest Temporarily disable the sandbox in Codemini config (Windows has no safe OS fallback):

{ "sandbox": { "enabled": false } } Advanced / microsandbox-only workaround (if you use msb directly): upstream suggests downgrading the host install:

msb downgrade 0.6.9 -y See microsandbox#1426 for caveats (e.g. stop running sandboxes first if msb.exe is locked).

What we are doing Track upstream fix in microsandbox#1426 Pin/bundle a Windows-working microsandbox version in Codemini (target: 0.6.9) and publish a patch release Document the issue and upgrade path in release notes / README Environment template Please comment if you are affected:

OS: Windows 10/11 (build) Codemini version: (codemini --version or npm list -g codemini-cli) Sandbox settings: sandbox.enabled, sandbox.backend, sandbox.mode Error snippet: (tool output / msb logs if available) WHVP / Hyper-V: enabled? (msb doctor output helps) Related: superradcompany/microsandbox#1426 — Windows host: every sandbox fails to start since v0.6.10

allabouturmind avatar Aug 21 '26 14:08 allabouturmind

Thanks for the detailed report and for linking the upstream issue.

We've shipped a mitigation that rolls microsandbox back to 0.6.9, the last known working version on Windows.

Please update Codemini with:

npm install -g codemini-cli@latest

This is currently a compatibility workaround for the upstream microsandbox regression rather than a permanent fix. We'll continue tracking https://github.com/superradcompany/microsandbox/issues/1426 and upgrade again once the Windows issue is fixed and verified.

If you still encounter sandbox startup failures after upgrading, please let us know your Windows version and the output of msb doctor.

Thanks again for the report.

havingautism avatar Aug 21 '26 15:08 havingautism