diff --git a/apps/desktop/src/components/editor/AiAssistant.vue b/apps/desktop/src/components/editor/AiAssistant.vue index 896be7c9d..75e21db60 100644 --- a/apps/desktop/src/components/editor/AiAssistant.vue +++ b/apps/desktop/src/components/editor/AiAssistant.vue @@ -611,7 +611,7 @@ function appendAssistantReasoning(assistantIdx: number, delta: string) { scrollToBottom(); } -const expandedReasoning = ref>(new Set()); +const reasoningExpanded = ref(false); const expandedSteps = ref>(new Set()); function toggleStep(key: string) { @@ -726,14 +726,8 @@ function agentEventToStep(event: AgentEvent, index: number): AiAgentStepItem | u }; } -function toggleReasoning(index: number) { - const next = new Set(expandedReasoning.value); - if (next.has(index)) { - next.delete(index); - } else { - next.add(index); - } - expandedReasoning.value = next; +function toggleReasoning() { + reasoningExpanded.value = !reasoningExpanded.value; } function getMessageScrollViewport(): HTMLElement | null { @@ -1800,16 +1794,16 @@ async function openExternalUrl(url: string) {
-