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
opencode attach --dir does not use project commands #11046
When attaching opencode to a running server and using --dir to specify what the CWD should be, any custom commands in that directory are not picked up/available.
The same issue does not appear to exist for project-specific custom skills; those appear to be available even when using opencode attach.
Plugins
None
OpenCode version
1.1.30
Steps to reproduce
opencode serve from some other directory
opencode attach --dir . <url> in a project directory that has custom commands at .opencode/commands/
Note that the project's custom commands are not available
Activity
github-actions commentedon Jan 28, 2026
This issue might be a duplicate of existing issues. Please check:
opencode run --attach#7376: add --dir flag toopencode run --attachcommands/directory not recognized on Windows, onlycommand/works #9335: Globalcommands/directory not recognized on Windows, onlycommand/workscommandvscommandsdirectory namingFeel free to ignore if none of these address your specific case.
github-actions commentedon Mar 30, 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.