//! Streaming transcript updates for `ChatWidget`. //! //! This module owns assistant, plan, and reasoning deltas, including stream-tail //! cells, commit ticks, and interrupt deferral. use super::*; use crate::markdown_render::ListSpacing; fn streamed_message_matches_completed(streamed: &str, completed: &str) -> bool { streamed == completed || streamed.strip_suffix('\n') == Some(completed) } fn latest_summary_line(text: &str) -> Option { text.lines().rev().find_map(|line| { let line = line.trim(); if line.is_empty() || line.starts_with("