fix(stream): remove redundant completion guard
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user