From 317882c143bcbfcb563a148e7043ac236d84bc6e Mon Sep 17 00:00:00 2001 From: Daniel Edrisian Date: Mon, 25 Aug 2025 09:59:24 -0700 Subject: [PATCH] with tracing --- codex-rs/tui/src/app.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rs index a532ba71c8..03568a8739 100644 --- a/codex-rs/tui/src/app.rs +++ b/codex-rs/tui/src/app.rs @@ -124,6 +124,7 @@ impl App { } else { match event { TuiEvent::Key(key_event) => { + tracing::info!("event: {}", key_event.code); self.handle_key_event(tui, key_event).await; } TuiEvent::Paste(pasted) => { @@ -132,7 +133,8 @@ impl App { // [tui-textarea]: https://github.com/rhysd/tui-textarea/blob/4d18622eeac13b309e0ff6a55a46ac6706da68cf/src/textarea.rs#L782-L783 // [iTerm2]: https://github.com/gnachman/iTerm2/blob/5d0c0d9f68523cbd0494dad5422998964a2ecd8d/sources/iTermPasteHelper.m#L206-L216 let pasted = pasted.replace("\r", "\n"); - self.chat_widget.handle_paste(pasted); + self.chat_widget.handle_paste(pasted.clone()); + tracing::info!("paste event: {}", pasted); } TuiEvent::Draw => { tui.draw(