hide CoT by default; show headers in status indicator (#2316)
Plan is for full CoT summaries to be visible in a "transcript view" when we implement that, but for now they're hidden. https://github.com/user-attachments/assets/e8a1b0ef-8f2a-48ff-9625-9c3c67d92cdb
This commit is contained in:
@@ -45,22 +45,6 @@ impl MarkdownStreamCollector {
|
||||
self.buffer.push_str(delta);
|
||||
}
|
||||
|
||||
/// Insert a paragraph/section separator if one is not already present at the
|
||||
/// end of the buffer. Ensures the next content starts after a blank line.
|
||||
pub fn insert_section_break(&mut self) {
|
||||
if self.buffer.is_empty() {
|
||||
return;
|
||||
}
|
||||
if self.buffer.ends_with("\n\n") {
|
||||
return;
|
||||
}
|
||||
if self.buffer.ends_with('\n') {
|
||||
self.buffer.push('\n');
|
||||
} else {
|
||||
self.buffer.push_str("\n\n");
|
||||
}
|
||||
}
|
||||
|
||||
/// Render the full buffer and return only the newly completed logical lines
|
||||
/// since the last commit. When the buffer does not end with a newline, the
|
||||
/// final rendered line is considered incomplete and is not emitted.
|
||||
|
||||
Reference in New Issue
Block a user