mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
fix: tui launch latency by disabling osc probe
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user