Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
style: rustfmt setext h1 stripping let binding
Vinícius DS Andrade4efde10bb17c
diff --git a/crates/ai-memory-web/src/markdown.rs b/crates/ai-memory-web/src/markdown.rsindex a7f0c89e..e56d2c8f 100644--- a/crates/ai-memory-web/src/markdown.rs+++ b/crates/ai-memory-web/src/markdown.rs@@ -482,8 +482,7 @@ pub fn strip_leading_h1<'a>(body: &'a str, title: &str) -> &'a str {&& !first_line.is_empty()&& first_line.trim() == title{- let (second_line, after_second) =- after_first.split_once('\n').unwrap_or((after_first, ""));+ let (second_line, after_second) = after_first.split_once('\n').unwrap_or((after_first, ""));let underline = second_line.trim_end_matches(['\r', ' ', '\t']);if !underline.is_empty() && underline.chars().all(|c| c == '=') {return after_second.trim_start_matches(['\n', '\r']);