fix(stream): remove redundant completion guard
This commit is contained in:
@@ -709,12 +709,6 @@ export function createStreamCommandCode(deps: CoreDependencies) {
|
||||
throw streamError
|
||||
}
|
||||
|
||||
if (!finished) {
|
||||
throw new Error(
|
||||
"Stream ended unexpectedly before completion (no finish event) — response was truncated",
|
||||
)
|
||||
}
|
||||
|
||||
// Stream completed successfully.
|
||||
endTextBlock()
|
||||
endThinking()
|
||||
|
||||
Reference in New Issue
Block a user