Support Warp for OSC 9 notifications (#17174)

Problem: Warp supports OSC 9 notifications, but the TUI's automatic
notification backend selection did not recognize its
`TERM_PROGRAM=WarpTerminal` environment value.

Solution: Treat `TERM_PROGRAM=WarpTerminal` as OSC 9-capable when
choosing the TUI desktop notification backend.
This commit is contained in:
Eric Traut
2026-04-08 18:49:31 -07:00
committed by GitHub
parent 22d07e7f8f
commit 4dca906e19

View File

@@ -56,7 +56,7 @@ fn supports_osc9() -> bool {
// that don't set it (e.g., tmux/ssh) to avoid regressing OSC 9 support.
if matches!(
env::var("TERM_PROGRAM").ok().as_deref(),
Some("WezTerm" | "ghostty")
Some("WezTerm" | "WarpTerminal" | "ghostty")
) {
return true;
}