memoryd: recall's local items on one indented line, as Honcho's

Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
This commit is contained in:
2026-09-29 09:17:05 -07:00
co-authored by ornith-1.5-35b-a3b
parent d8c396e691
commit a73d49c609
5 changed files with 279 additions and 40 deletions
+5 -2
View File
@@ -104,7 +104,10 @@ fn hits_are_tagged_and_labelled() {
]
);
assert!(got.text.starts_with("[1] "));
assert!(got.text.contains("\nThe launch window moved to Thursday."));
assert!(
got.text
.contains("\n The launch window moved to Thursday.")
);
assert!(!got.text.contains("page\n"), "tool results are not indexed");
assert_eq!((got.class, got.untrusted), (DataClass::Private, true));
}
@@ -142,7 +145,7 @@ fn long_hits_are_cut() {
.catch_up(&s.dir.path().join("sessions"), &s.store.path("notes.md"))
.unwrap();
let got = ask(&s, "needle", 1);
let body = got.text.split_once('\n').unwrap().1;
let body = got.text.split_once("\n ").unwrap().1;
assert!(body.chars().count() <= 600, "{}", body.chars().count());
}