File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 exit 0
1212fi
1313
14+ if [ -z " $WARP_CLI_AGENT_PROTOCOL_VERSION " ]; then
15+ cat << 'EOF '
16+ {
17+ "systemMessage": "⚠️ Please update Warp to get agent notifications — your terminal does not declare cli-agent protocol support"
18+ }
19+ EOF
20+ exit 0
21+ fi
22+
1423SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
1524source " $SCRIPT_DIR /build-payload.sh"
1625
Original file line number Diff line number Diff line change 55# For structured Warp notifications, title should be "warp://cli-agent"
66# and body should be a JSON string matching the cli-agent notification schema.
77
8- # Only emit notifications when running in Warp .
9- # Otherwise, folks that use warp _and_ another terminal will get
10- # garbled notifications whenever they run claude elsewhere .
11- if [ " $TERM_PROGRAM " != " WarpTerminal " ]; then
8+ # Only emit notifications when Warp declares protocol support .
9+ # This avoids garbled OSC sequences in non-Warp terminals
10+ # (and works over SSH where TERM_PROGRAM isn't propagated) .
11+ if [ -z " $WARP_CLI_AGENT_PROTOCOL_VERSION " ]; then
1212 exit 0
1313fi
1414
You can’t perform that action at this time.
0 commit comments