From f30c01c83e7d5ead589417ab1af2bb6e8cef314a Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Sun, 15 Feb 2026 20:05:17 -0800 Subject: [PATCH] chore(tui): reduce noisy textarea key debug logging --- codex-rs/tui/Cargo.toml | 2 -- codex-rs/tui/src/bottom_pane/textarea.rs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/codex-rs/tui/Cargo.toml b/codex-rs/tui/Cargo.toml index f791a3fc98..7c35e534b6 100644 --- a/codex-rs/tui/Cargo.toml +++ b/codex-rs/tui/Cargo.toml @@ -15,8 +15,6 @@ path = "src/lib.rs" [features] # Enable vt100-based tests (emulator) when running with `--features vt100-tests`. vt100-tests = [] -# Gate verbose debug logging inside the TUI implementation. -debug-logs = [] [lints] workspace = true diff --git a/codex-rs/tui/src/bottom_pane/textarea.rs b/codex-rs/tui/src/bottom_pane/textarea.rs index 2caa45602f..753514b7d1 100644 --- a/codex-rs/tui/src/bottom_pane/textarea.rs +++ b/codex-rs/tui/src/bottom_pane/textarea.rs @@ -487,8 +487,8 @@ impl TextArea { self.move_cursor_to_end_of_line(true); } _o => { - #[cfg(feature = "debug-logs")] - tracing::debug!("Unhandled key event in TextArea: {:?}", _o); + #[cfg(debug_assertions)] + tracing::trace!("Unhandled key event in TextArea: {:?}", _o); } } }