mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
Broaden tty detection for progress cursor
This commit is contained in:
@@ -125,7 +125,7 @@ pub async fn run_main(cli: Cli, codex_linux_sandbox_exe: Option<PathBuf>) -> any
|
||||
let cursor_ansi = match color {
|
||||
cli::Color::Never => false,
|
||||
cli::Color::Always => true,
|
||||
cli::Color::Auto => std::io::stderr().is_terminal(),
|
||||
cli::Color::Auto => stderr_with_ansi || std::io::stderr().is_terminal(),
|
||||
};
|
||||
|
||||
// Build fmt layer (existing logging) to compose with OTEL layer.
|
||||
|
||||
Reference in New Issue
Block a user