-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
claude-codeRelated to Claude CodeRelated to Claude Codecross-referencePattern found across multiple CLIsPattern found across multiple CLIskimi-cliRelated to Kimi CLIRelated to Kimi CLIopencodeRelated to OpenCodeRelated to OpenCodewindows
Description
Pattern
Windows path handling (spaces in usernames, EEXIST errors, PowerShell subprocess issues) is a universal pain point across all three major coding CLIs.
Occurrences
Claude Code
- 20+ open issues related to Windows
- #31418 — Hangs on startup when username contains spaces (EEXIST)
- #31465 — Bash tool broken when username contains apostrophe
- #31453 — Write tool fails with EEXIST on Windows
- #31460 — EEXIST mkdir when target dir exists
- #31398 — EEXIST file already exists on startup
OpenCode
- #16342 — Symbolic links not recognized on Windows 11
- #16336 — Snapshot occupies huge storage on Windows
- #16314, #16321 — Trojan false positive on Windows
Kimi CLI
Analysis
The root cause is consistent: CLI tools assume Unix-like path behavior. Key failure modes:
mkdirwith{recursive: true}still throws EEXIST on Windows race conditions- Usernames with spaces/apostrophes break shell escaping
- PowerShell has different quoting rules than bash/zsh
- Windows file locking causes unexpected EACCES
Recommended Solution
- Use platform-aware path normalization (no hardcoded
/) - Wrap mkdir with EEXIST retry/ignore
- Test username edge cases: spaces, apostrophes, unicode, CJK characters
- PowerShell: use
-Commandflag, avoid single quotes for variable interpolation
Contribution Target
Kimi CLI — Python's pathlib makes cross-platform path handling cleaner than Node.js. Fix #1341 with proper PowerShell subprocess handling.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
claude-codeRelated to Claude CodeRelated to Claude Codecross-referencePattern found across multiple CLIsPattern found across multiple CLIskimi-cliRelated to Kimi CLIRelated to Kimi CLIopencodeRelated to OpenCodeRelated to OpenCodewindows