From 9c0f8a50b67542b194fa1918bbd54cfc92709cc2 Mon Sep 17 00:00:00 2001 From: easong-openai Date: Fri, 1 Aug 2025 10:15:07 -0700 Subject: [PATCH] comments --- codex-rs/tui/src/bottom_pane/chat_composer.rs | 2 -- codex-rs/tui/src/bottom_pane/file_search_popup.rs | 1 - 2 files changed, 3 deletions(-) diff --git a/codex-rs/tui/src/bottom_pane/chat_composer.rs b/codex-rs/tui/src/bottom_pane/chat_composer.rs index 136436d4f3..db2a18b2d9 100644 --- a/codex-rs/tui/src/bottom_pane/chat_composer.rs +++ b/codex-rs/tui/src/bottom_pane/chat_composer.rs @@ -28,8 +28,6 @@ const BASE_PLACEHOLDER_TEXT: &str = "..."; /// If the pasted content exceeds this number of characters, replace it with a /// placeholder in the UI. const LARGE_PASTE_CHAR_THRESHOLD: usize = 1000; -/// Keep at least this many rows for the composer when popups are visible. -const MIN_TEXTAREA_HEIGHT: u16 = 3; /// Result returned when the user interacts with the text area. pub enum InputResult { diff --git a/codex-rs/tui/src/bottom_pane/file_search_popup.rs b/codex-rs/tui/src/bottom_pane/file_search_popup.rs index ac6c91cf47..f152a859ea 100644 --- a/codex-rs/tui/src/bottom_pane/file_search_popup.rs +++ b/codex-rs/tui/src/bottom_pane/file_search_popup.rs @@ -108,7 +108,6 @@ impl FileSearchPopup { .map(|file_match| file_match.path.as_str()) } - /// Preferred height (rows) including border. pub(crate) fn calculate_required_height(&self) -> u16 { // Row count depends on whether we already have matches. If no matches // yet (e.g. initial search or query with no results) reserve a single