Revert "Add fancy ASCII art header for agent mode"

This reverts commit 08747595a1.
This commit is contained in:
Dhanji R. Prasanna
2026-01-11 17:12:32 +05:30
parent 08747595a1
commit 2b87a89617
2 changed files with 11 additions and 51 deletions

View File

@@ -140,8 +140,7 @@ fn find_fallback_title(content: &str) -> Option<String> {
}
/// Truncate a string for display, adding ellipsis if needed.
/// Used for displaying long strings in fixed-width UI elements.
pub fn truncate_for_display(s: &str, max_len: usize) -> String {
fn truncate_for_display(s: &str, max_len: usize) -> String {
if s.len() > max_len {
format!("{}...", &s[..max_len - 3])
} else {
@@ -149,20 +148,6 @@ pub fn truncate_for_display(s: &str, max_len: usize) -> String {
}
}
/// Truncate a path for display, showing the end portion if too long.
/// For paths, we want to show the most relevant part (the end).
pub fn truncate_path_for_display(path: &std::path::Path, max_len: usize) -> String {
let path_str = path.display().to_string();
if path_str.len() > max_len {
// Show the end of the path with ... prefix
let start = path_str.len() - (max_len - 3);
// Find a path separator to break at cleanly if possible
format!("...{}", &path_str[start..])
} else {
path_str
}
}
#[cfg(test)]
mod tests {
use super::*;