Skip to content

Commit 990a8fb

Browse files
authored
fix: HOTFIX stop thinking animation if cancelled mid stream (#8222)
fix: thinking won't stop
1 parent 7ebe1d1 commit 990a8fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gui/src/pages/gui/Chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export function Chat() {
328328
redactedThinking={message.redactedThinking}
329329
index={index}
330330
prevItem={index > 0 ? history[index - 1] : null}
331-
inProgress={index === history.length - 1}
331+
inProgress={index === history.length - 1 && isStreaming}
332332
signature={message.signature}
333333
/>
334334
</div>
@@ -356,7 +356,7 @@ export function Chat() {
356356
</div>
357357
);
358358
},
359-
[sendInput, isLastUserInput, history, stepsOpen],
359+
[sendInput, isLastUserInput, history, stepsOpen, isStreaming],
360360
);
361361

362362
const showScrollbar = showChatScrollbar ?? window.innerHeight > 5000;

0 commit comments

Comments
 (0)