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.
This commit is contained in:
Ryan Ward
2026-08-18 13:19:05 -05:00
parent dec90208a4
commit 6eb145a1b4
+4 -3
View File
@@ -3727,11 +3727,12 @@ impl AIBlock {
self.requested_commands_to_auto_collapse.remove(action_id); self.requested_commands_to_auto_collapse.remove(action_id);
} }
// The terminal block remains the source of command output, but is hidden while // Requested-command output is rendered by the inline pane whenever it is
// the inline pane owns the expanded body so the content cannot detach below it. // 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 { ctx.emit(AIBlockEvent::UpdateInlineActionVisibility {
action_id: action_id.clone(), action_id: action_id.clone(),
is_visible: !*is_expanded, is_visible: false,
}); });
ctx.notify(); ctx.notify();
} }