mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
fix(tui/history): avoid spacer after collapsed reasoning before exec
This commit is contained in:
@@ -37783,6 +37783,19 @@ impl WidgetRef for &ChatWidget<'_> {
|
||||
.downcast_ref::<crate::history_cell::CollapsibleReasoningCell>()
|
||||
.map(|rc| rc.is_collapsed())
|
||||
.unwrap_or(false);
|
||||
if this_collapsed {
|
||||
if let Some(j) = next_visible_idx {
|
||||
if let Some(next_cell) = cells[j].cell {
|
||||
if matches!(
|
||||
next_cell.kind(),
|
||||
history_cell::HistoryCellType::Exec { .. }
|
||||
) {
|
||||
should_add_spacing = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if this_collapsed {
|
||||
let prev_collapsed = prev_visible_idx
|
||||
.and_then(|j| cells[j]
|
||||
|
||||
Reference in New Issue
Block a user