diff --git a/apps/desktop/src/components/editor/AiAssistant.vue b/apps/desktop/src/components/editor/AiAssistant.vue index d34bfb33cf..726fe2b581 100644 --- a/apps/desktop/src/components/editor/AiAssistant.vue +++ b/apps/desktop/src/components/editor/AiAssistant.vue @@ -511,7 +511,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) { @@ -626,14 +626,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 scrollToBottom() { @@ -1324,16 +1318,16 @@ async function openExternalUrl(url: string) {
-