From 598772f212d7d8bf0e0dc9d6ed0140048cbed8aa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 21:24:55 +0000 Subject: [PATCH 1/2] Initial plan From de5ca29dda62784708dedf8ea858bfd1ddb3dda3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 21:27:41 +0000 Subject: [PATCH 2/2] Fix: redirect UI prompts to stderr in bash fallbacks so command substitution captures only the selection Co-authored-by: jrock2004 <655716+jrock2004@users.noreply.github.com> --- scripts/lib/gum-wrapper.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/lib/gum-wrapper.sh b/scripts/lib/gum-wrapper.sh index 497e86c..74ce0f0 100755 --- a/scripts/lib/gum-wrapper.sh +++ b/scripts/lib/gum-wrapper.sh @@ -39,7 +39,7 @@ ui_choose() { printf "%s\n" "${options[@]}" | fzf --prompt="$prompt > " --height=40% --reverse else # Use bash select - echo "$prompt" + echo "$prompt" >&2 select option in "${options[@]}"; do if [ -n "$option" ]; then echo "$option" @@ -64,17 +64,17 @@ ui_multi_select() { printf "%s\n" "${options[@]}" | fzf --multi --prompt="$prompt > " --height=60% --reverse else # Use bash with manual multi-select - echo "$prompt" - echo "(Enter numbers separated by spaces, e.g., '1 3 5')" - echo "" + echo "$prompt" >&2 + echo "(Enter numbers separated by spaces, e.g., '1 3 5')" >&2 + echo "" >&2 local i=1 for option in "${options[@]}"; do - echo " $i) $option" + echo " $i) $option" >&2 ((i++)) done - echo "" + echo "" >&2 read -rp "Your selection: " selection # Convert selection to options @@ -256,19 +256,19 @@ select_components() { echo "$selected" | tr '\n' ' ' else # Fallback: show all components with descriptions - echo "$prompt" - echo "" + echo "$prompt" >&2 + echo "" >&2 local i=1 for item in "${components[@]}"; do local name="${item%%:*}" local desc="${item#*:}" - printf " ${CYAN}%2d)${RESET} %-20s ${BLUE}%s${RESET}\n" $i "$name" "$desc" + printf " ${CYAN}%2d)${RESET} %-20s ${BLUE}%s${RESET}\n" $i "$name" "$desc" >&2 ((i++)) done - echo "" - echo "Enter component numbers (space-separated, e.g., '1 3 5'), or press Enter for all:" + echo "" >&2 + echo "Enter component numbers (space-separated, e.g., '1 3 5'), or press Enter for all:" >&2 read -rp "> " selection if [ -z "$selection" ]; then