mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
## What changed - Add `tui.collapse_turn_details`, disabled by default, and a “Collapse turn details” toggle in the full-screen settings panel. - Summarize command executions with output-free labels, grouping multiple calls behind an expandable row. Keep full details available through transcript search and detailed view. - Restore interruption notices at their turn boundaries when resuming and loading older history, including turns split across pages. ## Testing Add coverage for live summary updates, expansion controls, search access to hidden output, settings visibility, and interruption ordering across history pages. GitOrigin-RevId: 68987fb0239e39414dac383098acac190fc4f516
34 lines
1.1 KiB
Rust
34 lines
1.1 KiB
Rust
//! A tail update is unseen only until its current final row has been painted.
|
|
//! Retained selections and reading snapshots may still hide a newer revision at the bottom.
|
|
|
|
use super::*;
|
|
|
|
impl TranscriptView {
|
|
pub(crate) fn can_return_to_latest(&self) -> bool {
|
|
!self.is_following()
|
|
}
|
|
|
|
pub(super) fn current_tail_is_visible(&mut self, cells: &[Arc<dyn HistoryCell>]) -> bool {
|
|
// Empty live previews and hidden reasoning cells do not obscure the actual tail.
|
|
for index in (0..=cells.len()).rev() {
|
|
let Some(layout) = self.current_layout(cells, index) else {
|
|
continue;
|
|
};
|
|
if layout.row_count() == 0 {
|
|
continue;
|
|
}
|
|
let key = cells.get(index).map_or(EntryKey::Live, EntryKey::cell);
|
|
return self.visible.last().is_some_and(|visible| {
|
|
visible.key == key
|
|
&& visible.layout.activity_content() == layout.activity_content()
|
|
&& visible.row + 1 == layout.row_count()
|
|
});
|
|
}
|
|
true
|
|
}
|
|
}
|
|
|
|
#[cfg(test)]
|
|
#[path = "activity_tests.rs"]
|
|
mod tests;
|