mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
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:
@@ -56,7 +56,7 @@ fn supports_osc9() -> bool {
|
|||||||
// that don't set it (e.g., tmux/ssh) to avoid regressing OSC 9 support.
|
// that don't set it (e.g., tmux/ssh) to avoid regressing OSC 9 support.
|
||||||
if matches!(
|
if matches!(
|
||||||
env::var("TERM_PROGRAM").ok().as_deref(),
|
env::var("TERM_PROGRAM").ok().as_deref(),
|
||||||
Some("WezTerm" | "ghostty")
|
Some("WezTerm" | "WarpTerminal" | "ghostty")
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user