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
7 changes: 1 addition & 6 deletions plugins/warp/scripts/legacy/on-session-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 0 additions & 7 deletions plugins/warp/tests/test-hooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---"

Expand Down
Loading