From a7700526739fe805ac3e334762cf08624557b908 Mon Sep 17 00:00:00 2001 From: Jonas H Date: Thu, 11 Jun 2026 08:44:26 +0200 Subject: [PATCH] Grow interactive prompt pane to 75% of the screen Claude Code clips AskUserQuestion option lists to the rows available; 60% was still cutting options off. Also relax the upper clamp so small terminals give the prompt as much as possible (6 rows reserved). Co-Authored-By: Claude Fable 5 --- src/ui.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index eb447e1..97e9730 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -194,12 +194,14 @@ fn event_loop( fn draw(f: &mut Frame, app: &SharedApp, eui: &mut EmbedUi) { let mut a = app.lock().unwrap(); // Embedded pane height: nothing when hidden; ~35% of the screen normally, - // ~60% while the tap says an interactive prompt is on screen. + // 75% while the tap says an interactive prompt is on screen — Claude + // Code's question UI clips its option list to the rows it gets, so the + // prompt wants as much height as we can spare. let show_embed = eui.visible && eui.term.is_some(); let embed_h = if show_embed { let total = f.area().height; - let pct = if a.embed_grow { 60 } else { 35 }; - ((total as u32 * pct / 100) as u16).clamp(10, total.saturating_sub(10)) + let pct = if a.embed_grow { 75 } else { 35 }; + ((total as u32 * pct / 100) as u16).clamp(10, total.saturating_sub(6)) } else { 0 };