diff --git a/assets/functions/utils/prompt-utils.sh b/assets/functions/utils/prompt-utils.sh index f78eaea..934967f 100755 --- a/assets/functions/utils/prompt-utils.sh +++ b/assets/functions/utils/prompt-utils.sh @@ -507,7 +507,7 @@ open_link() { guard_operation() { if [[ -t 1 ]]; then - if [[ -z "$AUTO_CONFIRM" ]]; then + if [[ -z "$AUTO_CONFIRM" && -z "$LLM_AGENT_VAR_AUTO_CONFIRM" ]]; then ans="$(confirm "${1:-Are you sure you want to continue?}")" if [[ "$ans" == 0 ]]; then @@ -659,7 +659,7 @@ guard_path() { path="$(_to_real_path "$1")" confirmation_prompt="$2" - if [[ ! "$path" == "$(pwd)"* && -z "$AUTO_CONFIRM" ]]; then + if [[ ! "$path" == "$(pwd)"* && -z "$AUTO_CONFIRM" && -z "$LLM_AGENT_VAR_AUTO_CONFIRM" ]]; then ans="$(confirm "$confirmation_prompt")" if [[ "$ans" == 0 ]]; then