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
commit 49593c1ec4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 69 additions and 17 deletions

View file

@ -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" } }