Skip to content

Commit 32197cb

Browse files
committed
fix stream parser bug by adding flush()
1 parent 17a4e57 commit 32197cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/agent-runtime/src/tool-stream-parser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export async function* processStreamWithTools(params: {
8787
chunk: StreamChunk | undefined,
8888
): Generator<StreamChunk> {
8989
if (chunk === undefined) {
90+
flush()
9091
streamCompleted = true
9192
return
9293
}

0 commit comments

Comments
 (0)