Skip to content

Some (weird right) commands in the global directory, do not do anything #2231

Closed

Description

@roderik

I have these 2 global commands
Image

They all show up in the auto complete.

If i do /comments, it prints out my prompt and gets going.

The front matter of this command

---
description: Add comprehensive documentation to TypeScript code changes
agent: code-commenter
---
Image

If i do /pr however, it just "does nothing"

---
description: Create a pull request with autonomous workflow management
agent: pr-creator
---

In the logs i found this when i do the /pr command

ERROR 2025-08-24T21:21:12 +1ms service=tui error=POST "http://127.0.0.1:57022/session/ses_7220b8433ffeBz4OlcimacK6n7/command": 400 Bad Request {"name":"UnknownError","data":{"message":"Error: ENOENT: no such file or directory, scandir '/Users/roderik/Development/asset-tokenization-kit/github.com:settlemint'"}} Failed to execute command

Actually, only /comments works, the others show a different error message, they appear not the check the global folder

/review

---
description: Perform comprehensive code review of current changes
agent: code-reviewer
---
ERROR 2025-08-24T21:22:35 +2ms service=tui error=POST "http://127.0.0.1:57022/session/ses_7220b8433ffeBz4OlcimacK6n7/command": 400 Bad Request {"name":"UnknownError","data":{"message":"Error: File not found: /Users/roderik/Development/asset-tokenization-kit/code-reviewer"}} Failed to execute command

/test

---
description: Run quality checks and automatically fix failures
agent: test-runner
---
ERROR 2025-08-24T21:22:58 +1ms service=tui error=POST "http://127.0.0.1:57022/session/ses_722097567ffexPzueHq00cR6E3/command": 400 Bad Request {"name":"UnknownError","data":{"message":"Error: File not found: /Users/roderik/Development/asset-tokenization-kit/test-runner"}} Failed to execute command

Looking at the error, it is the "agent" file that it looks for.
However it is completely unclear why comments works, and that the error messages differ between the others

any other debug information i can provide?

Activity

  1. github-actions commented on Aug 24, 2025

    @github-actions
    Contributor

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

    The root cause appears to be related to the missing binary directory that agents need for execution, as detailed in #1856. You might want to try the workaround mentioned there: mkdir -p ~/.local/share/opencode/bin to see if that resolves some of your issues.

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

  2. roderik commented on Aug 24, 2025

    @roderik
    ContributorAuthor

    Did the suggestion, but no change

    mkdir -p ~/.local/share/opencode/bin
    
  3. roderik commented on Aug 24, 2025

    @roderik
    ContributorAuthor

    Maybe this is involved, my commands (carry over from CC) have things like

    Trigger the @pr-creator agent to handle the complete PR creation workflow.
    

    that do the actual work, this might be the cause of the file not found errors.
    Still should not crash the command though right?

  4. rekram1-node commented on Aug 24, 2025

    @rekram1-node
    Collaborator

    we will look into this

  5. roderik commented on Aug 25, 2025

    @roderik
    ContributorAuthor

    Removing the faulty for opencode @ agent mentions makes the commands work btw

  6. arsham commented on Aug 25, 2025

    @arsham

    I've also noticed that when you have @ anywhere in the command it would fail silently. I think letting it calling agents is a useful functionality.

  7. art-shen commented on Aug 30, 2025

    @art-shen

    How is it completed if the commands are still failing and show nothing in a conversation?

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions