From eb2e5458ccbbe07d446a091a22dfddcb0af13bb2 Mon Sep 17 00:00:00 2001 From: pakrym-oai Date: Wed, 10 Dec 2025 13:56:48 -0800 Subject: [PATCH] Disable ansi codes in tui log file (#7836) --- codex-rs/tui/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/tui/src/lib.rs b/codex-rs/tui/src/lib.rs index d9793a07a..71a47d119 100644 --- a/codex-rs/tui/src/lib.rs +++ b/codex-rs/tui/src/lib.rs @@ -269,6 +269,7 @@ pub async fn run_main( let file_layer = tracing_subscriber::fmt::layer() .with_writer(non_blocking) .with_target(false) + .with_ansi(false) .with_span_events(tracing_subscriber::fmt::format::FmtSpan::CLOSE) .with_filter(env_filter());