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:
- Use the
opencode package provided by nix-ai-tools
- Prompt the agent in a way that causes it to run a bash command.
- 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