[PR #3396] fix: Opencode fails with ENOENT posix_spawn '/usr/bin/rg' #10625

Closed
opened 2026-02-16 18:15:20 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3396

State: closed
Merged: Yes


When cwd does not exist, Bun.spawn throws saying that the executable ("rg") does not exist.

I reported this as an issue to bun https://github.com/oven-sh/bun/issues/24012, but for now, I added a workaround to throw the correct error message so the user is not misled.

Closes #3158.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3396 **State:** closed **Merged:** Yes --- When cwd does not exist, Bun.spawn throws saying that the executable ("rg") does not exist. I reported this as an issue to bun https://github.com/oven-sh/bun/issues/24012, but for now, I added a workaround to throw the correct error message so the user is not misled. Closes #3158.
yindo added the pull-request label 2026-02-16 18:15:20 -05:00
yindo closed this issue 2026-02-16 18:15:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10625