fix: recursion bug with similarly named Bash search functions in the explore agent

This commit is contained in:
2026-03-30 13:32:13 -06:00
parent db77034431
commit cf45dc4820
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -290,7 +290,7 @@ detect_project() {
## FILE SEARCH UTILITIES ## ## FILE SEARCH UTILITIES ##
########################### ###########################
search_files() { _search_files() {
local pattern="$1" local pattern="$1"
local dir="${2:-.}" local dir="${2:-.}"
+1 -1
View File
@@ -60,7 +60,7 @@ search_files() {
echo "" >> "$LLM_OUTPUT" echo "" >> "$LLM_OUTPUT"
local results local results
results=$(search_files "${pattern}" "${project_dir}") results=$(_search_files "${pattern}" "${project_dir}")
if [[ -n "${results}" ]]; then if [[ -n "${results}" ]]; then
echo "${results}" >> "$LLM_OUTPUT" echo "${results}" >> "$LLM_OUTPUT"