tui failed to send message: RipgrepExtractionFailedError #1173

Open
opened 2026-02-16 17:29:51 -05:00 by yindo · 4 comments
Owner

Originally created by @wickertongue on GitHub (Aug 8, 2025).

Originally assigned to: @thdxr on GitHub.

Hi there! I experienced an issue setting up opencode on macos with
github-copilot today.


Context

I installed opencode on macos using homebrew:

brew install sst/tap/opencode

And am running opencode version:

opencode --version
0.4.1

Following install, I authorised with github with the below:

opencode auth login

The Issue

I ran /init within one of my repositories. No actions are returned, and an
error message is sometimes shown (but not always). The command /init command
gerates the prompt, but there is no reply from the agent.

Looking into the logs, I see the below:

INFO  2025-08-08T11:02:33 +0ms service=bus type=session.idle publishing
INFO  2025-08-08T11:02:33 +1ms service=server duration=634 response
ERROR 2025-08-08T11:02:33 +2ms service=tui failed to send message: POST "http://127.0.0.1:51603/session/ses_776a73a8cffemjSMzb4beF6UGj/message": 400 Bad Request {"name":"RipgrepExtractionFailedError","data":{"filepath":"/Users/wickertongue/.local/share/opencode/bin/rg","stderr":"tar: unrecognized option '--include=*/rg'\nTry 'tar --help' or 'tar --usage' for more information.\n"}}
INFO  2025-08-08T11:02:36 +3167ms service=tui offset=0 x=102 y=4 mouse
INFO  2025-08-08T11:02:36 +1ms service=tui end=-1,-1 start=102,4 mouse selection

The Manual Solution

EDIT: replaced repgrip with ripgrep in the below. I muddled my i's and e's.

Currently, this error can be solved by installing ripgrep:

brew install ripgrep

Running opencode following the install of ripgrep allows the /init function
to run.


Closing Thoughts

It looks like opencode has a dependency on ripgrep and assumes the user has
it installed already. Happy to provide any further help if necessary 😄

Originally created by @wickertongue on GitHub (Aug 8, 2025). Originally assigned to: @thdxr on GitHub. Hi there! I experienced an issue setting up `opencode` on `macos` with `github-copilot` today. --- ## Context I installed `opencode` on `macos` using homebrew: ```shell brew install sst/tap/opencode ``` And am running `opencode` version: ```shell opencode --version 0.4.1 ``` Following install, I authorised with github with the below: ```shell opencode auth login ``` --- ## The Issue I ran `/init` within one of my repositories. No actions are returned, and an error message is sometimes shown (but not always). The command `/init` command gerates the prompt, but there is no reply from the agent. Looking into the logs, I see the below: ```text INFO 2025-08-08T11:02:33 +0ms service=bus type=session.idle publishing INFO 2025-08-08T11:02:33 +1ms service=server duration=634 response ERROR 2025-08-08T11:02:33 +2ms service=tui failed to send message: POST "http://127.0.0.1:51603/session/ses_776a73a8cffemjSMzb4beF6UGj/message": 400 Bad Request {"name":"RipgrepExtractionFailedError","data":{"filepath":"/Users/wickertongue/.local/share/opencode/bin/rg","stderr":"tar: unrecognized option '--include=*/rg'\nTry 'tar --help' or 'tar --usage' for more information.\n"}} INFO 2025-08-08T11:02:36 +3167ms service=tui offset=0 x=102 y=4 mouse INFO 2025-08-08T11:02:36 +1ms service=tui end=-1,-1 start=102,4 mouse selection ``` --- ## The Manual Solution **EDIT: replaced repgrip with ripgrep in the below. I muddled my i's and e's.** Currently, this error can be solved by installing `ripgrep`: ```shell brew install ripgrep ``` Running `opencode` following the install of `ripgrep` allows the `/init` function to run. --- ## Closing Thoughts It looks like `opencode` has a dependency on `ripgrep` and assumes the user has it installed already. Happy to provide any further help if necessary 😄
Author
Owner

@gitteri commented on GitHub (Sep 18, 2025):

FYI this should be ripgrep not repgrip

@gitteri commented on GitHub (Sep 18, 2025): FYI this should be ripgrep not repgrip
Author
Owner

@rekram1-node commented on GitHub (Sep 18, 2025):

is anyone still having this issue?

@rekram1-node commented on GitHub (Sep 18, 2025): is anyone still having this issue?
Author
Owner

@jquense commented on GitHub (Dec 8, 2025):

I just hit this on a fresh laptop on the latest opencode from brew. brew installing ripgrep fixed it

@jquense commented on GitHub (Dec 8, 2025): I just hit this on a fresh laptop on the latest opencode from brew. brew installing ripgrep fixed it
Author
Owner

@rekram1-node commented on GitHub (Dec 8, 2025):

ill add it as a dep to the brew formulas

@rekram1-node commented on GitHub (Dec 8, 2025): ill add it as a dep to the brew formulas
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1173