Skip to content

EEXIST crash when running in a Git repository — .git/info already exists #205

@WqyJh

Description

@WqyJh

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

  1. Install MiMo Code v0.1.0 (Windows, npm global install)
  2. cd into any directory that has a .git/ folder
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions