Glob tool fails on Windows MSYS systems / git bash #7879

Open
opened 2026-02-16 18:08:33 -05:00 by yindo · 1 comment
Owner

Originally created by @pschiel on GitHub (Jan 28, 2026).

Originally assigned to: @rekram1-node on GitHub.

Steps to reproduce

  • start opencode in folder e.g. E:/src/ai/opencode/local/packages/opencode
  • ask agent to glob e.g. find MD files in "/c/Users/ops/.config"
  • agent fails with ENOENT error

Root cause

In a mixed environment (Windows paths, MSYS paths) glob fails to read the file due to path mismatching

#6763 solves via path normalization

Originally created by @pschiel on GitHub (Jan 28, 2026). Originally assigned to: @rekram1-node on GitHub. ## Steps to reproduce - start opencode in folder e.g. `E:/src/ai/opencode/local/packages/opencode` - ask agent to glob e.g. `find MD files in "/c/Users/ops/.config"` - agent fails with `ENOENT` error ## Root cause In a mixed environment (Windows paths, MSYS paths) glob fails to read the file due to path mismatching #6763 solves via path normalization
yindo added the windowsbug labels 2026-02-16 18:08:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 28, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11043: Segfault on Windows git bash (msys) when using bash tool with cwd

Both issues involve MSYS/Git Bash environments failing with ENOENT errors when handling absolute paths. The root cause appears to be related to path format handling on Windows MSYS systems (backslashes vs forward slashes).

Feel free to ignore if your specific case differs from these issues.

@github-actions[bot] commented on GitHub (Jan 28, 2026): This issue might be a duplicate of existing issues. Please check: - #11043: Segfault on Windows git bash (msys) when using bash tool with cwd Both issues involve MSYS/Git Bash environments failing with ENOENT errors when handling absolute paths. The root cause appears to be related to path format handling on Windows MSYS systems (backslashes vs forward slashes). Feel free to ignore if your specific case differs from these issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7879