fix: use PATH to find binaries in CLI mode #4152
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
Before this patch, Kilo Code in CLI mode would get stuck at "Thinking...".
Looking at the logs, the reason for the behavior was explained by this:
It turns out that, before this fix, Kilo Code in CLI mode would attempt to find the ripgrep binary in its own bundle instead of relying on the system binaries.
Implementation
Warning
The code was completely generated by Claude Opus 4.5 - but it was tested and I can confirm that the fix works
Screenshots
How to Test
Use the CLI, send a message
Get in Touch