You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Global commands/ directory not recognized on Windows, only command/ works #9335
Description
On Windows, custom commands placed in the global config directory ~/.config/opencode/commands/ are not recognized. However, renaming the directory to command/ (singular) makes it work correctly.
Expected Behavior
According to the source code in packages/opencode/src/config/config.ts:
const COMMAND_GLOB = new Bun.Glob("{command,commands}/**/*.md")
Both command/ and commands/ should be valid directory names.
Actual Behavior
~/.config/opencode/commands/commit.md → Not recognized (command not shown in / menu)
~/.config/opencode/command/commit.md → Works correctly
Environment
OS: Windows 11
OpenCode Version: 1.1.25
Shell: Git Bash / PowerShell
Possible Cause
The {command,commands} glob pattern in Bun.Glob may not work correctly on Windows, possibly d
Activity
github-actions commentedon Jan 19, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.