Let task agents create and manage subtasks

This commit is contained in:
Ian Gulliver
2026-10-16 10:36:38 -07:00
parent fd63a0dfbc
commit 0f2415570c
30 changed files with 1067 additions and 287 deletions
+8 -1
View File
@@ -53,7 +53,14 @@ func (m *Manager) Merge(ctx context.Context, task api.Task, project api.Project,
if task.MergeQueuedAt != nil {
return api.Task{}, fmt.Errorf("%w: task %s is already waiting to merge", ErrConflict, task.Id)
}
title, err := cleanMergeTitle(title)
if task.MergingIntoParent {
return api.Task{}, fmt.Errorf("%w: task %s is merging into its parent", ErrConflict, task.Id)
}
err := m.checkNoSubtasks(ctx, task)
if err != nil {
return api.Task{}, err
}
title, err = cleanMergeTitle(title)
if err != nil {
return api.Task{}, err
}