Skip to content

rg hangs indefinitely in 0.14.7 in a linux/amd64 container; works on 0.14.6 #3089

Closed

Description

@rescrv

I think something about 0.14.7 broke the shell with ripgrep. The command times out and doesn't display output. Things are swimming on 0.14.6.

Activity

  1. github-actions commented on Oct 11, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. rekram1-node commented on Oct 11, 2025

    @rekram1-node
    Contributor

    As in anything that opencode uses ripgrep for (like u looked at processes and saw rg specifically?) Or are you saying the grep tool (which uses rg under hood) is hanging suddenly?

  3. rescrv commented on Oct 11, 2025

    @rescrv
    Author

    I was referring to the grep tool. ripgrep seems to just timeout and have no output. I was able to repro that 0.14.6 didn't hang, but now it's hanging too. I no longer suspect a recent regression in opencode, but a problem in my environment (0.14.6 has been fine for me prior to today).

  4. rekram1-node commented on Oct 11, 2025

    @rekram1-node
    Contributor

    okay that kinda helps narrow down, I will take a look over it. If I don't spot anything i may have some additional questions

  5. remorses commented on Oct 11, 2025

    @remorses
    Contributor

    I am having the same issue, when bash tool calls any command that includes rg it takes forever. Is opencode doing something weird for commands that have rg in them?

    When I manually run rg it is instant

    I am on macOS

  6. rekram1-node commented on Oct 11, 2025

    @rekram1-node
    Contributor

    Hmmm

  7. remorses commented on Oct 11, 2025

    @remorses
    Contributor

    I finally found the issue. Ripgrep waits for the process stdin, we need to pass stdin ignore or rg will hang waiting for stdin to end

    Opening a PR right now

  8. rekram1-node commented on Oct 11, 2025

    @rekram1-node
    Contributor

    Yo thanks!

  9. rekram1-node commented on Oct 12, 2025

    @rekram1-node
    Contributor

    should be fixed in next release

  10. seaweeduk commented on Oct 12, 2025

    @seaweeduk

    thankyou for fixing this one I was so confused why it started taking ages to call rg

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