Skip to content

tui failed to send message: RipgrepExtractionFailedError #1713

Closed as not planned

Description

@wickertongue

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 😄

Activity

  1. assigned and unassigned on Aug 11, 2025
  2. gitteri commented on Sep 18, 2025

    @gitteri

    FYI this should be ripgrep not repgrip

  3. rekram1-node commented on Sep 19, 2025

    @rekram1-node
    Contributor

    is anyone still having this issue?

  4. jquense commented on Dec 8, 2025

    @jquense
    Contributor

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

  5. rekram1-node commented on Dec 8, 2025

    @rekram1-node
    Contributor

    ill add it as a dep to the brew formulas

  6. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

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