Skip to content

Opencode seems to produce errors when trying to run bash commands #994

@scotttrinh

Description

@scotttrinh

Describe the bug

When running opencode in Ghostty on macOS, I'm getting the following error:

RuntimeAborted(Error: ENOENT: no such file or directory, open '../../../tree-sitter-3jzf13jk.wasm'). Build with -sASSERTIONS for more info.

To Reproduce

Steps to reproduce the behavior:

  1. Use the opencode package provided by nix-ai-tools
  2. Prompt the agent in a way that causes it to run a bash command.
  3. The command succeeds, but it seems like the tree-sitter parser that is loaded dynamically by opencode is resolved to a relative directory at runtime?

System information

macOS, Ghostty, opencode 1.0.65

Metadata

Metadata

Assignees

No one assigned

    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