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

Closed
opened 2026-02-16 17:33:53 -05:00 by yindo · 10 comments
Owner

Originally created by @rescrv on GitHub (Oct 10, 2025).

Originally assigned to: @thdxr on GitHub.

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.

Originally created by @rescrv on GitHub (Oct 10, 2025). Originally assigned to: @thdxr on GitHub. 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.
yindo closed this issue 2026-02-16 17:33:53 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 10, 2025):

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

  • #3082: Similar hanging behavior in v0.14.7 on Linux, though that issue focuses on initialization hanging rather than ripgrep specifically

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

@github-actions[bot] commented on GitHub (Oct 10, 2025): This issue might be a duplicate of existing issues. Please check: - #3082: Similar hanging behavior in v0.14.7 on Linux, though that issue focuses on initialization hanging rather than ripgrep specifically Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Oct 11, 2025):

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?

@rekram1-node commented on GitHub (Oct 11, 2025): 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?
Author
Owner

@rescrv commented on GitHub (Oct 11, 2025):

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).

@rescrv commented on GitHub (Oct 11, 2025): 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).
Author
Owner

@rekram1-node commented on GitHub (Oct 11, 2025):

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

@rekram1-node commented on GitHub (Oct 11, 2025): 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
Author
Owner

@remorses commented on GitHub (Oct 11, 2025):

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

@remorses commented on GitHub (Oct 11, 2025): 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
Author
Owner

@rekram1-node commented on GitHub (Oct 11, 2025):

Hmmm

@rekram1-node commented on GitHub (Oct 11, 2025): Hmmm
Author
Owner

@remorses commented on GitHub (Oct 11, 2025):

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

@remorses commented on GitHub (Oct 11, 2025): 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
Author
Owner

@rekram1-node commented on GitHub (Oct 11, 2025):

Yo thanks!

@rekram1-node commented on GitHub (Oct 11, 2025): Yo thanks!
Author
Owner

@rekram1-node commented on GitHub (Oct 12, 2025):

should be fixed in next release

@rekram1-node commented on GitHub (Oct 12, 2025): should be fixed in next release
Author
Owner

@seaweeduk commented on GitHub (Oct 12, 2025):

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

@seaweeduk commented on GitHub (Oct 12, 2025): thankyou for fixing this one I was so confused why it started taking ages to call rg
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2038