Give each workflow run a parent task with no agent
This commit is contained in:
@@ -927,14 +927,18 @@ func (m *Manager) listTasksText(ctx context.Context) (string, error) {
|
||||
open++
|
||||
}
|
||||
}
|
||||
fmt.Fprintf(b, "- %s %q: %s; %d open questions; worktree %s", t.Id, t.Title, agent, open, t.WorktreePath)
|
||||
if t.Workflow != nil {
|
||||
fmt.Fprintf(b, "- %s %q: %s", t.Id, t.Title, agent)
|
||||
} else {
|
||||
fmt.Fprintf(b, "- %s %q: %s; %d open questions; worktree %s", t.Id, t.Title, agent, open, t.WorktreePath)
|
||||
}
|
||||
if t.TodoItem != nil {
|
||||
fmt.Fprintf(b, "; from TODO item %q", *t.TodoItem)
|
||||
}
|
||||
if t.ForkedFrom != nil {
|
||||
fmt.Fprintf(b, "; forked from %s at snapshot %d", *t.ForkedFrom, *t.ForkedAt)
|
||||
}
|
||||
if t.ParentTaskId != nil {
|
||||
if t.ParentTaskId != nil && t.WorkflowStage == nil {
|
||||
fmt.Fprintf(b, "; subtask of %s", *t.ParentTaskId)
|
||||
if t.MergingIntoParent {
|
||||
b.WriteString(", merging into it")
|
||||
@@ -946,12 +950,12 @@ func (m *Manager) listTasksText(ctx context.Context) (string, error) {
|
||||
if t.MergeAfterReview {
|
||||
b.WriteString("; merges once the running review finishes with no findings")
|
||||
}
|
||||
if t.Workflow != nil {
|
||||
stage, err := m.workflowStatus(ctx, t)
|
||||
if t.Workflow != nil || t.WorkflowStage != nil {
|
||||
status, err := m.workflowStatus(ctx, t)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
fmt.Fprintf(b, "; workflow %q, %s", *t.Workflow, stage)
|
||||
fmt.Fprintf(b, "; %s", status)
|
||||
}
|
||||
b.WriteString("\n")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user