mirror of
https://github.com/openai/codex.git
synced 2026-05-03 12:52:11 +03: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.
|
||||
if matches!(
|
||||
env::var("TERM_PROGRAM").ok().as_deref(),
|
||||
Some("WezTerm" | "ghostty")
|
||||
Some("WezTerm" | "WarpTerminal" | "ghostty")
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user