From caf2b427024e905e979de3d09049420cd8126e76 Mon Sep 17 00:00:00 2001 From: Harry Date: Thu, 16 Apr 2026 18:27:05 -0400 Subject: [PATCH 1/2] get rid of startup warning when not running in warp --- plugins/warp/scripts/legacy/on-session-start.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugins/warp/scripts/legacy/on-session-start.sh b/plugins/warp/scripts/legacy/on-session-start.sh index 4d5e7fb..e3749a3 100755 --- a/plugins/warp/scripts/legacy/on-session-start.sh +++ b/plugins/warp/scripts/legacy/on-session-start.sh @@ -11,10 +11,5 @@ if [ "$TERM_PROGRAM" = "WarpTerminal" ]; then } EOF else - # Not running in Warp - suggest installing - cat << 'EOF' -{ - "systemMessage": "ℹ️ Warp plugin installed but you're not running in Warp terminal. Install Warp (https://warp.dev) to get native notifications when Claude completes tasks or needs input." -} -EOF + exit 0 fi From 0e472da4f81dd77305242afd70faf182737fabc0 Mon Sep 17 00:00:00 2001 From: Harry Date: Thu, 16 Apr 2026 18:28:43 -0400 Subject: [PATCH 2/2] fix failing test --- plugins/warp/tests/test-hooks.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugins/warp/tests/test-hooks.sh b/plugins/warp/tests/test-hooks.sh index 220d3ae..c8fcbb6 100755 --- a/plugins/warp/tests/test-hooks.sh +++ b/plugins/warp/tests/test-hooks.sh @@ -215,13 +215,6 @@ assert_eq "legacy Warp shows active message" \ "🔔 Warp plugin active. You'll receive native Warp notifications when tasks complete or input is needed." \ "$SYS_MSG" -# Not Warp (neither env var set) -OUTPUT=$(TERM_PROGRAM=other bash "$HOOK_DIR/on-session-start.sh" < /dev/null 2>/dev/null) -SYS_MSG=$(echo "$OUTPUT" | jq -r '.systemMessage // empty' 2>/dev/null) -assert_eq "non-Warp shows install message" \ - "ℹ️ Warp plugin installed but you're not running in Warp terminal. Install Warp (https://warp.dev) to get native notifications when Claude completes tasks or needs input." \ - "$SYS_MSG" - echo "" echo "--- Modern-only hooks exit silently without protocol version ---"