Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/api/types/TaskStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
* FINISHED: Task has finished and the agent has completed the task.
* STOPPED: Task execution has been manually stopped (cannot be resumed).
*/
export type TaskStatus = "started" | "paused" | "finished" | "stopped";
export type TaskStatus = "created" | "started" | "paused" | "finished" | "stopped";
export const TaskStatus = {
Create: "created",
Started: "started",
Paused: "paused",
Finished: "finished",
Expand Down
2 changes: 2 additions & 0 deletions src/wrapper/lib/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export function wrapCreateTaskResponse(
case "paused":
break poll;
case "started":
case "created":
await new Promise((resolve) => setTimeout(resolve, intervalMs));
break;
default:
Expand Down Expand Up @@ -256,6 +257,7 @@ export function wrapCreateTaskResponse(
}
}
case "started":
case "created":
break;
default:
throw new ExhaustiveSwitchCheck(msg.data.status);
Expand Down