Skip to content

Commit ff67fa3

Browse files
committed
fix(ChatMessages): watch deep to handle streaming with parts
1 parent 0db622a commit ff67fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/components/ChatMessages.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ watchThrottled([() => props.messages, () => props.status], ([_, status]) => {
144144
// Check scroll position when message is streaming to show the auto scroll button
145145
checkScrollPosition()
146146
}
147-
}, { throttle: 100, leading: true })
147+
}, { deep: true, throttle: 100, leading: true })
148148
149149
watch(() => props.status, (status) => {
150150
if (status !== 'submitted') {

0 commit comments

Comments
 (0)