From fc4e1368646abb05e5cc1b72c3d3c32a8b382e83 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Feb 2026 16:50:06 +0000 Subject: [PATCH 1/2] Initial plan From 4b55f5d7ed5513f02311bbe212e31abe6594e0f7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Feb 2026 16:53:29 +0000 Subject: [PATCH 2/2] Fix uninstall command to handle missing Wave Terminal config Co-authored-by: Qbandev <8140029+Qbandev@users.noreply.github.com> --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 0735d76..6304bb3 100755 --- a/install.sh +++ b/install.sh @@ -631,8 +631,11 @@ run_uninstall() { local widgets_file="$WAVETERM_CONFIG/widgets.json" local script_path="$BIN_DIR/wave-scratch.sh" - # Remove widgets from widgets.json - if [[ -f "$widgets_file" ]]; then + # Check if Wave Terminal is installed + if [[ -z "$WAVETERM_CONFIG" ]]; then + print_warning "Wave Terminal config not found, skipping widget removal." + elif [[ -f "$widgets_file" ]]; then + # Remove widgets from widgets.json local temp_file temp_file=$(mktemp)