From 65688aa62312ba00160b1ec89ab062bcecdca636 Mon Sep 17 00:00:00 2001 From: a7m-1st Date: Fri, 10 Oct 2025 11:15:05 +0300 Subject: [PATCH] fix: replay type bug --- src/store/chatStore.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/store/chatStore.ts b/src/store/chatStore.ts index cdd571703..51503e980 100644 --- a/src/store/chatStore.ts +++ b/src/store/chatStore.ts @@ -396,7 +396,7 @@ const chatStore = (initial?: Partial) => createStore()( tasks[currentId].isTakeControl; if (project_id && !isConfirm && !isTakeControl && !tasks[currentId].isTaskEdit) { - handleConfirmTask(project_id, currentId); + handleConfirmTask(project_id, currentId, type); } setIsTaskEdit(currentId, false); }, 30000); @@ -1490,9 +1490,10 @@ const chatStore = (initial?: Partial) => createStore()( task: taskInfo, }); await fetchPost(`/task/${project_id}/start`, {}); + + setActiveWorkSpace(taskId, 'workflow') + setStatus(taskId, 'running') } - setActiveWorkSpace(taskId, 'workflow') - setStatus(taskId, 'running') let messages = [...tasks[taskId].messages] const cardTaskIndex = messages.findLastIndex((message) => message.step === 'to_sub_tasks') if (cardTaskIndex !== -1) {