fix: type check fix (#13382)

This commit is contained in:
Bhargav
2026-07-22 15:28:29 +00:00
committed by GitHub
parent db1da2f096
commit 960d092a8d
2 changed files with 7 additions and 6 deletions
+4 -5
View File
@@ -5153,11 +5153,10 @@ export default defineComponent({
isLoading.value = false;
activeToolCall.value = null;
stopAnalyzingRotation();
finalizeTextBlock();
if (typewriterAnimationId.value) {
cancelAnimationFrame(typewriterAnimationId.value);
typewriterAnimationId.value = null;
}
// The owning instance's processStream already wrote the final text
// into the message blocks, so this instance only clears its own
// typewriter UI.
resetTypewriterState();
// Reflect the completed turn into the sync handshake + history so a
// later mount reads the finished chat, not a mid-stream snapshot.
store.dispatch("setCurrentChatTimestamp", currentChatId.value);
@@ -26,7 +26,9 @@ const props = withDefaults(defineProps<ToggleGroupItemProps>(), {
const slots = defineSlots<ToggleGroupItemSlots>();
const context = inject<ComputedRef<ToggleGroupContext>>(
// An item may be used standalone (no OToggleGroup parent), so the context is
// optional and every read below is guarded.
const context = inject<ComputedRef<ToggleGroupContext> | undefined>(
TOGGLE_GROUP_CONTEXT_KEY,
);