Skip to content

Commit

Permalink
Merge pull request #80 from Dogtiti/hotfix-sub-task
Browse files Browse the repository at this point in the history
hotfix: Change the execution order of subtasks #78
  • Loading branch information
Dogtiti authored Apr 27, 2023
2 parents 42f52f4 + 8d3e498 commit 0a40c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AutonomousAgent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

1 comment on commit 0a40c0e

@vercel
Copy link

@vercel vercel bot commented on 0a40c0e Apr 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

auto-gpt-next-web – ./

auto-gpt-next-web-dogtiti.vercel.app
auto-gpt-next-web-git-main-dogtiti.vercel.app
auto-agentgpt.com

Please sign in to comment.