Access denied: target is a protected system directory on Windows with C:\dev\ path
Description
bun dev C:\dev\test $ bun run --cwd packages/opencode script/dev.ts "C:\dev\test" Performing one time database migration, may take a few minutes... Database migration complete. │ ● Accessing workspace: │ │ C:\dev\test │ │ Quick safety check: Is this a project you created or one you trust? (Like your own code, a well-known open source project, or work from your team). If not, take a moment to review what's in this folder first. │ │ MiMo Code will be able to read, edit, and execute files here. │ │ If malicious plugins exist in this directory, they can execute arbitrary code, read, modify, or exfiltrate your files. ◇ │ Yes, I trust this folder { "name": "UnknownError", "data": { "message": "Access denied: target is a protected system directory" } }
Plugins
No response
MiMoCode version
v0.1.2
Steps to reproduce
- Create or have a project in a path containing \dev\ on Windows (e.g., C:\dev\test)
- Run
bun dev C:\dev\test - Confirm the trust prompt ("Yes, I trust this folder")
- Observe the error: { "name": "UnknownError", "data": { "message": "Access denied: target is a protected system directory" } }
Screenshot and/or share link
Operating System
Windows 11
Terminal
Windows Terminal
thanks! We have solved it in next version