fix: tui launch latency by disabling osc probe

This commit is contained in:
Michael Bolin
2025-10-07 19:30:32 -07:00
parent abd517091f
commit aea299c5eb

View File

@@ -104,6 +104,12 @@ mod imp {
return Ok(None);
}
// Many modern GPU terminals ignore OSC, so only perform the query on
// terminals known to support it.
if !codex_core::terminal::user_agent().starts_with("iTerm.app") {
return Ok(None);
}
let mut tty = match OpenOptions::new().read(true).write(true).open("/dev/tty") {
Ok(file) => file,
Err(_) => return Ok(None),