From bf1a0cf19166015377909703b37a4591ba400c1c Mon Sep 17 00:00:00 2001 From: a7m-1st Date: Fri, 24 Oct 2025 02:41:16 +0300 Subject: [PATCH] fix: continue queue filter --- src/components/ChatBox/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ChatBox/index.tsx b/src/components/ChatBox/index.tsx index a6ea6101f..e2321fac5 100644 --- a/src/components/ChatBox/index.tsx +++ b/src/components/ChatBox/index.tsx @@ -594,7 +594,7 @@ export default function ChatBox(): JSX.Element { //Call api only when workforce has been run at least once //Note: Replay creates a new chatstore, so no conflicts const task = chatStore.tasks[chatStore.activeTaskId as string]; - if(task.messages && task.messages.some(m => m.step === 'to_sub_tasks')) { + if(task.messages && task.messages.some(m => m.step === 'to_sub_tasks') && task.status === "running") { await fetchDelete(`/chat/${project_id}/remove-task/${task_id}`, { project_id: project_id, task_id: task_id