Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix(web): negative control for non-underline setext line + changelog ref (#1108)
maintainer68fc633d178d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex df420181..f5f34348 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -22,7 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0endings. The underline check required every character of the second lineto be `=`, which failed when the line contained a trailing carriage return,trailing whitespace or tabs, or when the document ended at the underline- without a trailing newline.+ without a trailing newline. (#1108)- Fixed generic OpenCode commands selecting integration contracts from commandspelling instead of the executable's major version. `run opencode` now probesthe exact executable once and carries the resolved V1/V2 dialect throughdiff --git a/crates/ai-memory-web/src/markdown.rs b/crates/ai-memory-web/src/markdown.rsindex e56d2c8f..871aef9e 100644--- a/crates/ai-memory-web/src/markdown.rs+++ b/crates/ai-memory-web/src/markdown.rs@@ -664,6 +664,11 @@ mod tests {let out = strip_leading_h1("Title\r\n===== \r\n\r\nbody\r\n", "Title");assert_eq!(out, "body\r\n");++ // Negative control: an underline with inner spaces is not a setext+ // H1 underline — the heading must survive stripping.+ let out = strip_leading_h1("Title\r\n== x ==\r\nbody", "Title");+ assert_eq!(out, "Title\r\n== x ==\r\nbody");}#[test]