Give each workflow run a parent task with no agent

This commit is contained in:
Ian Gulliver
2026-10-21 09:02:09 -07:00
parent d062d7ccae
commit a130b9556d
23 changed files with 661 additions and 474 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ func (m *Manager) taskGuidance(ctx context.Context, task api.Task) (string, erro
g += fmt.Sprintf("\n- This task was started from the item %q in %s at the repo root. When the work is done, remove that item from %s in this worktree, so the removal lands in the same merge as the work.",
*task.TodoItem, todo.File, todo.File)
}
if task.ParentTaskId != nil {
if task.ParentTaskId != nil && task.WorkflowStage == nil {
parent, err := m.store.GetTask(ctx, *task.ParentTaskId)
if err != nil {
return "", err