Skip to content

Commit 0175f1f

Browse files
authored
get rid of startup warning when not running in warp (#21)
* get rid of startup warning when not running in warp * fix failing test
1 parent 57b8c4a commit 0175f1f

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

plugins/warp/scripts/legacy/on-session-start.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,5 @@ if [ "$TERM_PROGRAM" = "WarpTerminal" ]; then
1111
}
1212
EOF
1313
else
14-
# Not running in Warp - suggest installing
15-
cat << 'EOF'
16-
{
17-
"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."
18-
}
19-
EOF
14+
exit 0
2015
fi

plugins/warp/tests/test-hooks.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,6 @@ assert_eq "legacy Warp shows active message" \
215215
"🔔 Warp plugin active. You'll receive native Warp notifications when tasks complete or input is needed." \
216216
"$SYS_MSG"
217217

218-
# Not Warp (neither env var set)
219-
OUTPUT=$(TERM_PROGRAM=other bash "$HOOK_DIR/on-session-start.sh" < /dev/null 2>/dev/null)
220-
SYS_MSG=$(echo "$OUTPUT" | jq -r '.systemMessage // empty' 2>/dev/null)
221-
assert_eq "non-Warp shows install message" \
222-
"ℹ️ 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." \
223-
"$SYS_MSG"
224-
225218
echo ""
226219
echo "--- Modern-only hooks exit silently without protocol version ---"
227220

0 commit comments

Comments
 (0)