Skip to content

Commit 77b65bc

Browse files
committed
fix: agents only pick up in_progress tasks, not todo
Adds user approval step: tasks must be moved from todo to in_progress before agents will execute them.
1 parent 2ca7957 commit 77b65bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ async function runLoop(cliArgs: CliArgs, runner: AgentRunner): Promise<void> {
463463
const tasks: Task[] = sprintData.tasks;
464464

465465
const todoTasks = tasks
466-
.filter((t) => (t.status === "todo" || t.status === "in_progress") && t.owner !== "user")
466+
.filter((t) => t.status === "in_progress" && t.owner !== "user")
467467
.sort((a, b) => {
468468
const pa = typeof a.priority === "string" ? parseInt(a.priority.replace("p", ""), 10) : (a.priority ?? 99);
469469
const pb = typeof b.priority === "string" ? parseInt(b.priority.replace("p", ""), 10) : (b.priority ?? 99);

0 commit comments

Comments
 (0)