From 78f9e2d94a1b84ac5aabae5400d1d3065085c95f Mon Sep 17 00:00:00 2001 From: Josh McKinney Date: Mon, 24 Nov 2025 16:03:46 -0800 Subject: [PATCH] fix: keep tui log plain text Disable ANSI output on the file tracing layer and re-enable targets so codex-tui.log stays readable while showing the source of each message. --- codex-rs/tui/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/tui/src/lib.rs b/codex-rs/tui/src/lib.rs index 33bd18c4379..14218194b7d 100644 --- a/codex-rs/tui/src/lib.rs +++ b/codex-rs/tui/src/lib.rs @@ -267,7 +267,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());