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
@@ -183,6 +183,9 @@ func TestEinoTurnLoopRuntimePushInterruptStartsNextTurn(t *testing.T) {
t.Fatalf("first input = %q, want initial task", got)
}
lastInput := inputs[len(inputs)-1]
if len(lastInput) < 2 || lastInput[0].Content != "initial task" {
t.Fatalf("initial history lost after preempt: %#v", lastInput)
}
if len(lastInput) == 0 || !strings.Contains(lastInput[len(lastInput)-1].Content, "focus on ssh") {
t.Fatalf("last input = %#v, want interrupt note", lastInput)
}