Skip to content

opencode attach --dir does not use project commands #11046

Closed

Description

@ekweible

Description

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

  1. opencode serve from some other directory
  2. opencode attach --dir . <url> in a project directory that has custom commands at .opencode/commands/
  3. Note that the project's custom commands are not available

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

Ghostty

Activity

  1. github-actions commented on Jan 28, 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.

  2. github-actions commented on Mar 30, 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

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions