mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-24 05:26:42 +00:00
update
This commit is contained in:
parent
97412e418f
commit
525980c14c
1 changed files with 9 additions and 5 deletions
|
|
@ -2711,11 +2711,15 @@ const chatStore = (initial?: Partial<ChatStore>) =>
|
|||
(task) => task.content !== ''
|
||||
);
|
||||
setTaskInfo(taskId, taskInfo);
|
||||
// Sync taskRunning with the filtered taskInfo (user edits should be reflected
|
||||
setTaskRunning(
|
||||
taskId,
|
||||
taskInfo.map((task) => ({ ...task }))
|
||||
);
|
||||
// Sync taskRunning with the filtered taskInfo (user edits should be reflected).
|
||||
// Skip for replay: taskRunning already reflects the completed state from playback
|
||||
// and resetting it would revert the Done counters back to Pending.
|
||||
if (!type) {
|
||||
setTaskRunning(
|
||||
taskId,
|
||||
taskInfo.map((task) => ({ ...task }))
|
||||
);
|
||||
}
|
||||
|
||||
// IMPORTANT: Set isConfirm BEFORE sending API requests to prevent race condition
|
||||
// where backend sends to_sub_tasks SSE event before we mark task as confirmed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue