Skip to content

Commit 168cb97

Browse files
committed
fix: reset thinking state on processing chunk events
1 parent 60218d8 commit 168cb97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/process_events.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export function processEmittedEvent(
9797

9898
// Process Chunk events (events with patches).
9999
if (isStreamChunkEvent(event)) {
100+
updateThinking(undefined);
100101
const { event_id, patches, metadata } = event.data;
101102
if (!event_id) {
102103
console.error("Missing event_id on chunk event:", event);

0 commit comments

Comments
 (0)