Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .agent/scripts/quality-loop-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,9 @@ pr_review_loop() {
fi
fi
;;
*)
print_warning "Unknown PR status: $status"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The print_warning function is likely not available in this script's execution context. Functions defined in aidevops.sh are not automatically inherited by helper scripts that are executed in a subshell. This will likely cause a 'command not found' runtime error. To ensure robustness, it's safer to use a standard command like echo to print the warning to standard error.

Suggested change
print_warning "Unknown PR status: $status"
echo "WARNING: Unknown PR status: $status" >&2

;;
esac

iteration=$(increment_iteration)
Expand Down
6 changes: 6 additions & 0 deletions .agent/scripts/terminal-title-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ detect_terminal() {
echo "hyper"
return 0
;;
*)
# Not a known TERM_PROGRAM, continue to TERM check
;;
esac

# Check by TERM variable for other terminals
Expand All @@ -107,6 +110,9 @@ detect_terminal() {
echo "compatible"
return 0
;;
*)
# Not a known TERM, continue to other checks
;;
esac

# Check for Windows Terminal
Expand Down
Loading