diff --git a/src/components/AutonomousAgent.ts b/src/components/AutonomousAgent.ts index a9568b14..ff10148d 100644 --- a/src/components/AutonomousAgent.ts +++ b/src/components/AutonomousAgent.ts @@ -119,7 +119,7 @@ class AutonomousAgent { currentTask as string, result ); - this.tasks = this.tasks.concat(newTasks); + this.tasks = newTasks.concat(this.tasks); for (const task of newTasks) { await new Promise((r) => setTimeout(r, TIMOUT_SHORT)); this.sendTaskMessage(task);