Description
Bug description
Running mimo inside any Git repository immediately crashes with an EEXIST error because it attempts to mkdir .git/info which already exists in every Git repo.
Expected behavior
MiMo starts normally, recognizing the existing .git/info directory.
Actual behavior
{ "name": "UnknownError", "data": { "message": "Error: EEXIST: file already exists, mkdir 'D:....git\info'\n at async KN (B:/~BUN/root/chunk-3k7cmhct.js:16:9936)" } }
Environment
- OS: Windows 11
- MiMo Code version: 0.1.0
- Installation method: npm install -g @mimo-ai/cli
- Shell: PowerShell 7
Additional context
The mkdir call should use { recursive: true } or check for existence before creating. This makes MiMo unusable in any Git-tracked project directory, which is presumably the primary use case.
Plugins
No response
OpenCode version
0.1.0
Steps to reproduce
- Install MiMo Code v0.1.0 (Windows, npm global install)
cd into any directory that has a .git/ folder
- Run
mimo
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal
Mirrored from XiaomiMiMo/MiMo-Code#243 — original author @Wingplane.
Description
Bug description
Running
mimoinside any Git repository immediately crashes with an EEXIST error because it attempts tomkdir .git/infowhich already exists in every Git repo.Expected behavior
MiMo starts normally, recognizing the existing
.git/infodirectory.Actual behavior
{ "name": "UnknownError", "data": { "message": "Error: EEXIST: file already exists, mkdir 'D:....git\info'\n at async KN (B:/~BUN/root/chunk-3k7cmhct.js:16:9936)" } }
Environment
Additional context
The
mkdircall should use{ recursive: true }or check for existence before creating. This makes MiMo unusable in any Git-tracked project directory, which is presumably the primary use case.Plugins
No response
OpenCode version
0.1.0
Steps to reproduce
cdinto any directory that has a.git/foldermimoScreenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal
Mirrored from XiaomiMiMo/MiMo-Code#243 — original author @Wingplane.