Skip to main content

codetether_agent/tui/ui/chat_view/
entry_result.rs

1//! Result type returned by [`super::entries::append_entries`].
2
3/// Result of the entry-append pass.
4///
5/// Carries the maximum scroll offset across all tool activity panels
6/// so the outer layer can clamp the tool-preview scroll.
7///
8/// # Examples
9///
10/// ```rust
11/// use codetether_agent::tui::ui::chat_view::entry_result::EntryAppendResult;
12/// let result = EntryAppendResult { tool_preview_max_scroll: 42 };
13/// assert_eq!(result.tool_preview_max_scroll, 42);
14/// ```
15pub struct EntryAppendResult {
16    /// Largest scroll offset found in tool activity panels.
17    pub tool_preview_max_scroll: usize,
18}