fix: reconcile typed history with run exits

This commit is contained in:
2026-08-27 15:12:05 +09:00
parent ec798c58d7
commit 1515a2fb86
11 changed files with 144 additions and 195 deletions
+2 -3
View File
@@ -38,10 +38,9 @@ async fn run_preserves_item_annotations_without_projecting_them() {
let output = engine
.run_with_annotation(&mut history, "hello", &mut annotate)
.await
.unwrap();
.await;
assert!(matches!(output.result, agen::EngineResult::Finished));
assert!(matches!(output.result, agen::EngineRunExit::Finished));
assert_eq!(history.len(), 2);
assert_eq!(history.entries()[0].annotation, "1:user");
assert_eq!(history.entries()[1].annotation, "2:assistant");