fix(stream): remove redundant completion guard

This commit is contained in:
Patrick Wozniak
2026-08-25 16:56:19 +02:00
parent dceec74e35
commit ad307c93fd
-6
View File
@@ -709,12 +709,6 @@ export function createStreamCommandCode(deps: CoreDependencies) {
throw streamError throw streamError
} }
if (!finished) {
throw new Error(
"Stream ended unexpectedly before completion (no finish event) — response was truncated",
)
}
// Stream completed successfully. // Stream completed successfully.
endTextBlock() endTextBlock()
endThinking() endThinking()