fix(core): settle interrupted assistant steps (#33266)

This commit is contained in:
Kit Langton
2026-06-21 22:22:09 +02:00
committed by GitHub
parent d4c4f084a8
commit 49586b8a9b
5 changed files with 69 additions and 17 deletions
@@ -547,6 +547,8 @@ const verifyPartialFlushOnInterruption = (kind: FragmentKind) =>
{ type: "user", text: prompt },
{
type: "assistant",
finish: "error",
error: { type: "unknown", message: "Provider turn interrupted" },
content: [
kind === "tool input"
? { type: "tool", id: fragmentID(kind, "interrupted"), state: { status: "error" } }