feat(worker): approve a unit parent like a single task, orchestrator only for legacy units
This commit is contained in:
@@ -134,7 +134,9 @@ public sealed class PlanningMergeOrchestrator : IActiveMergeState
|
||||
throw new InvalidOperationException("working tree has uncommitted changes");
|
||||
|
||||
var idsToMerge = new List<string>();
|
||||
if (!isPlanning && parentHasWorktree)
|
||||
// A planning parent owns a worktree too since the unit branch -- a mixed unit (absorbed
|
||||
// children in it, legacy children beside it) must land it before the legacy children.
|
||||
if (parentHasWorktree)
|
||||
idsToMerge.Add(parentTaskId);
|
||||
idsToMerge.AddRange(
|
||||
children
|
||||
|
||||
Reference in New Issue
Block a user