Skip to content

The agent that grows with you

docs(ui-tui): document recordError tail semantics next to the #61520 flush

kshitijk4poor5590e30b7734
diff --git a/ui-tui/src/app/turnController.ts b/ui-tui/src/app/turnController.ts
index 33e3471eb81..99366708ae2 100644
--- a/ui-tui/src/app/turnController.ts
+++ b/ui-tui/src/app/turnController.ts
@@ -581,6 +581,9 @@ class TurnController {
}
recordError() {
+ // A failed turn discards the whole unsealed turn (flushed segments AND the
+ // streaming tail) — unlike recordMessageComplete, which must keep the tail
+ // (#61520), and interruptTurn, which preserves it as `partial`.
this.idle()
this.clearReasoning()
this.clearStatusTimer()