feat: manage task process lifetimes and preserve turn history

This commit is contained in:
Ed1s0nZ
2026-09-16 17:52:58 +08:00
parent fd1c13a43d
commit f7882be546
54 changed files with 3650 additions and 330 deletions
@@ -102,6 +102,9 @@ func TestRunEinoADKAgentLoopUsesTurnLoopInterruptPush(t *testing.T) {
t.Fatalf("model calls = %d, want at least 2", len(inputs))
}
last := inputs[len(inputs)-1]
if len(last) < 2 || last[0].Content != "initial task" {
t.Fatalf("initial task lost: %#v", last)
}
if len(last) == 0 || last[len(last)-1].Role != schema.User || last[len(last)-1].Content == "initial task" {
t.Fatalf("last model input = %#v, want interrupt supplement turn", last)
}