Merge main into context-window: mask cap (#117) moves into ContextWindow
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s

This commit is contained in:
hermes committed 2026-10-02 15:04:41 +00:00
commit cd52d409b2
2 files changed
+22 -5

No files matched your search

+2 -2
View File
@@ -574,7 +574,7 @@ mod tests {
Session::open(dir.path().join("s.jsonl")).unwrap(),
cx,
);
a.set_compact_at(1_000_000); // masking only from ~333k tokens: never in this run
a.set_compact_at(1_000_000); // capped at 60k tokens: this run stays below it
a.run("go").await.unwrap();
let elided = |r: &Request| {
r.messages.iter().any(|m| {
@@ -603,7 +603,7 @@ mod tests {
Session::open(dir.path().join("s2.jsonl")).unwrap(),
cx,
);
b.set_compact_at(3_000);
b.set_compact_at(3_000); // a third = 1k tokens, below the cap
b.run("go").await.unwrap();
assert!(script.1.lock().unwrap().iter().any(elided));
assert!(