MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

mimo (v0.1.2) fails on Windows with "Access denied: target is a protected system directory"

Open 554254015 opened this issue 5 months ago • 1 comments

Description

Environment

  • OS: Windows 10/11 x64
  • mimo version: 0.1.2
  • Bun version (internal): 1.3.14-canary.1
  • Install method: npm install -g @mimo-ai/cli (also tried bun install -g @mimo-ai/cli)

Bug

Any command that starts the server-proxy (TUI) fails with Access denied: target is a protected system directory: mimo # TUI bootstrap failed mimo serve # same error mimo run "test" # same error mimo models # same error mimo session list # same error Only pure CLI commands work: mimo --help, mimo --version, mimo providers list.

Error Log

ERROR service=server-proxy error=[object Object] tui bootstrap failed ERROR service=server error=Access denied: target is a protected system directory failed Full stack trace: Error: Access denied: target is a protected system directory at HN (B:/~BUN/root/chunk-n9zw4tet.js:18:7678) at provide (B:/~BUN/root/chunk-n9zw4tet.js:18:8228) at fn (B:/~BUN/root/chunk-s8t74q0s.js:17:20660) at run (node:async_hooks:62:22) ... at async fetch (B:/~BUN/root/src/cli/cmd/tui/worker.js:2:3158)

Root Cause

The mimo.exe binary is compiled with Bun. On Windows, Bun's runtime sandbox blocks fetch calls that target "protected system directories" (e.g., C:\Windows). The TUI worker's internal fetch call hits this restriction. Running as Administrator does NOT resolve the issue.

Workarounds Tried (none work)

  • Running as Administrator
  • Setting BUN_TMPDIR, BUN_INSTALL_CACHE_DIR, BUN_RUNTIME_PROTECTED_DIR
  • --trust, --never-ask, --pure flags
  • Running from different directories (E:, C:\temp, etc.)
  • Running mimo.exe directly (without Node.js wrapper)
  • bun install -g @mimo-ai/cli (reinstall via Bun)

Expected Behavior

mimo should start successfully on Windows without Access denied errors.

554254015 avatar Jun 24 '26 02:06 554254015

thanks! next version will solve it

MiMoHardFather avatar Jun 24 '26 03:06 MiMoHardFather