Skip to content

[Bug] Global commands/ directory not recognized on Windows, only command/ works #9335

Closed

Description

@ylitchan

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

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 19, 2026
  2. github-actions commented on Jan 19, 2026

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  3. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions