Make task state store-owned and signal its changes to the lead
This commit is contained in:
+5
-2
@@ -982,8 +982,11 @@ export interface components {
|
||||
workflow_run?: string;
|
||||
/** @description With workflow: the name of the stage this task runs. */
|
||||
workflow_stage?: string;
|
||||
/** @description Whether a review of one of the task's snapshots is running. */
|
||||
reviewing: boolean;
|
||||
/**
|
||||
* @description What the task is doing, kept by the store in the same transaction as every change to it (a task.state event carries each change): merged or discarded once closed, else discarding, merging, the state of its agent's latest live session when that isn't idle, reviewing while a review runs, review_pending between a turn's end and its snapshot's review starting or being skipped, idle, or no_agent.
|
||||
* @enum {string}
|
||||
*/
|
||||
state: "running" | "idle" | "review_pending" | "reviewing" | "merging" | "discarding" | "merged" | "discarded" | "no_agent";
|
||||
/** @description Whether a Merge was started and its turn hasn't ended yet. */
|
||||
merging: boolean;
|
||||
/** @description Whether a Discard was started and the task isn't closed yet: its summary turn is waiting for the running turn, running, or done and the task is being removed. */
|
||||
|
||||
Reference in New Issue
Block a user