diff --git a/ui/src/conversation-panel/components/content/items/group/index.vue b/ui/src/conversation-panel/components/content/items/group/index.vue index a669eb7d669..913f06f5fdc 100644 --- a/ui/src/conversation-panel/components/content/items/group/index.vue +++ b/ui/src/conversation-panel/components/content/items/group/index.vue @@ -78,7 +78,7 @@ const currentActivity = computed(() => { diff --git a/ui/src/workflow-canvas/ai-generate/panel/activity.ts b/ui/src/workflow-canvas/ai-generate/panel/activity.ts index 907db59f3f3..ff813b3c722 100644 --- a/ui/src/workflow-canvas/ai-generate/panel/activity.ts +++ b/ui/src/workflow-canvas/ai-generate/panel/activity.ts @@ -185,7 +185,8 @@ export function createActivity() { } last.text += event.delta emit(scopeKey, { type, id: last.id, content: event.delta, ...(type === 'REASONING' ? { status: 'RUNNING' } : {}) }) - lastActivity.value = tail(last.text) + // lastActivity.value = tail(last.text) + lastActivity.value = event.type === 'reasoning' ? tail(last.text) : '' } else if (event.type === 'tool_start') { settle(scopeKey) const delegate = DELEGATE_TOOLS.has(event.name) @@ -206,9 +207,7 @@ export function createActivity() { const name = toolTitle(toolCall) emit( toolCall.scopeKey, - toolCall.delegate - ? { type: 'GROUP', id: toolCall.contentId, name } - : { type: 'TOOL', id: toolCall.contentId, name, arguments: event.delta }, + toolCall.delegate ? { type: 'GROUP', id: toolCall.contentId, name } : { type: 'TOOL', id: toolCall.contentId, name, arguments: event.delta }, ) } else if (event.type === 'tool_end') { const toolCall = toolCallById.get(event.id)