Skip to content
Open
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
4 changes: 2 additions & 2 deletions plugins/warp/scripts/emit-terminal-sequence.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ emit_terminal_sequence() {
# Known-old Claude Code — /dev/tty is the only safe path.
# Emitting terminalSequence here would be rejected by the Stop
# hook validator as an unknown field.
printf '%s' "$seq" > /dev/tty 2>/dev/null || true
printf '%s' "$seq" 2>/dev/null > /dev/tty || true
fi
return 0
fi

# Unknown Claude Code version — try /dev/tty, fall back to JSON
# as a best-effort attempt for new CC without version detection.
if printf '%s' "$seq" > /dev/tty 2>/dev/null; then
if printf '%s' "$seq" 2>/dev/null > /dev/tty; then
return 0
fi
jq -nc --arg seq "$seq" '{terminalSequence: $seq}'
Expand Down
2 changes: 1 addition & 1 deletion plugins/warp/scripts/legacy/warp-notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ BODY="${2:-}"

# OSC 777 format: \033]777;notify;<title>;<body>\007
# Write directly to /dev/tty to ensure it reaches the terminal
printf '\033]777;notify;%s;%s\007' "$TITLE" "$BODY" > /dev/tty 2>/dev/null || true
printf '\033]777;notify;%s;%s\007' "$TITLE" "$BODY" 2>/dev/null > /dev/tty || true