Skip to content

[Bug]: #210

@marcinkmetko-epam

Description

@marcinkmetko-epam

Prerequisites

  • I have searched existing issues to avoid duplicates
  • I am using the latest version of CodeMie CLI
  • I have read the documentation

Bug Description

Error: 'C:\Users\Marcin' is not recognized...

CLI version: 0.0.51
OS: Windows 11
Username path: contains parentheses (
C:\Users\Marcin(Contrac>

Error: 'C:\Users\Marcin' is not recognized...
Note: The underlying Gemini CLI subprocess path is not properly quoted.

Steps to Reproduce

  1. Use a Windows 11 machine with a user profile path containing parentheses
    (e.g., C:\Users\Marcin(Contrac)

  2. Install Node.js and verify it's in PATH:
    node --version

  3. Install CodeMie CLI globally:
    npm install -g @codemieai/code

  4. Set up a profile:
    codemie setup
    codemie profile

  5. Install Gemini agent:
    codemie install gemini
    (Output: "Gemini CLI is already installed")

  6. Run the Gemini agent:
    codemie-gemini --model gemini-3-pro

  7. Observe the error:
    'C:\Users\Marcin is not recognized as an internal or external command,
    operable program or batch file.
    ❌ Failed to run Gemini CLI
    Gemini CLI exited with code 1

Additional attempts that also failed:

  • Running from a path without special characters (C:\tmp) — same error
  • Changing npm global prefix: npm config set prefix "C:\Users\Public\npm-global" — same error
  • Reinstalling globally: npm uninstall -g @codemieai/code && npm install -g @codemieai/code — same error
  • npx @codemieai/code --agent gemini --model gemini-3-pro — "could not determine executable to run"

What works correctly:

  • codemie --help ✅
  • codemie profile ✅
  • codemie install gemini ✅ ("Gemini CLI is already installed")

Expected Behavior

The codemie-gemini --model gemini-3-pro command should launch the Gemini CLI
agent session successfully, regardless of whether the Windows user profile path
contains special characters (such as parentheses).

The Gemini CLI subprocess path should be properly quoted/escaped when spawned
internally, so that paths like:
C:\Users\Marcin(Contrac\AppData\Roaming\npm...
are handled correctly by the Windows command parser.

Actual Behavior

Observe the error:
'C:\Users\Marcin' is not recognized as an internal or external command,
operable program or batch file.
❌ Failed to run Gemini CLI
Gemini CLI exited with code 1

CodeMie CLI Version

0.0.51

Which agent are you using?

Google Gemini (codemie-gemini)

Which provider are you using?

AI/Run SSO

Model

No response

Node.js Version

v22.18.0

Operating System

Windows (native)

Configuration (Redacted)

Error Logs

Additional Context

No response

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