From f82c9aff4065a70251c574c073bd530652895800 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Mon, 9 Feb 2026 14:56:55 -0700 Subject: [PATCH] fix: fs_ls and fs_cat outputs should always redirect to "$LLM_OUTPUT" including on errors. --- assets/functions/tools/fs_cat.sh | 2 +- assets/functions/tools/fs_ls.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/functions/tools/fs_cat.sh b/assets/functions/tools/fs_cat.sh index 9d898e5..84713e0 100755 --- a/assets/functions/tools/fs_cat.sh +++ b/assets/functions/tools/fs_cat.sh @@ -10,5 +10,5 @@ set -e main() { # shellcheck disable=SC2154 - cat "$argc_path" >> "$LLM_OUTPUT" + cat "$argc_path" >> "$LLM_OUTPUT" 2>&1 || echo "No such file or path: $argc_path" >> "$LLM_OUTPUT" } \ No newline at end of file diff --git a/assets/functions/tools/fs_ls.sh b/assets/functions/tools/fs_ls.sh index 236c15c..65f0e12 100755 --- a/assets/functions/tools/fs_ls.sh +++ b/assets/functions/tools/fs_ls.sh @@ -9,5 +9,5 @@ set -e main() { # shellcheck disable=SC2154 - ls -1 "$argc_path" >> "$LLM_OUTPUT" + ls -1 "$argc_path" >> "$LLM_OUTPUT" 2>&1 || echo "No such path: $argc_path" >> "$LLM_OUTPUT" } \ No newline at end of file