From 6eb145a1b45378e09836647c30daadb82d768fd1 Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Tue, 18 Aug 2026 13:19:05 -0500 Subject: [PATCH] Keep requested-command terminal block hidden on collapse Requested-command output is rendered by the inline pane whenever it is expanded. Keep the backing terminal block hidden in both states so collapsing the pane does not move the output to the bottom of the conversation. --- app/src/ai/blocklist/block.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/ai/blocklist/block.rs b/app/src/ai/blocklist/block.rs index fb9647ec..34445b74 100644 --- a/app/src/ai/blocklist/block.rs +++ b/app/src/ai/blocklist/block.rs @@ -3727,11 +3727,12 @@ impl AIBlock { self.requested_commands_to_auto_collapse.remove(action_id); } - // The terminal block remains the source of command output, but is hidden while - // the inline pane owns the expanded body so the content cannot detach below it. + // Requested-command output is rendered by the inline pane whenever it is + // expanded. Keep the backing terminal block hidden in both states so collapsing + // the pane does not move the output to the bottom of the conversation. ctx.emit(AIBlockEvent::UpdateInlineActionVisibility { action_id: action_id.clone(), - is_visible: !*is_expanded, + is_visible: false, }); ctx.notify(); }