Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Disable ansi codes in tui log file (#7836)

pakrym-oaieb2e5458ccbb
diff --git a/codex-rs/tui/src/lib.rs b/codex-rs/tui/src/lib.rs
index d9793a07a0..71a47d1198 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());