feat(worker): add continue_merge and abort_merge MCP tools

This commit is contained in:
mika kuns
2026-07-24 14:21:26 +02:00
parent f4f7c81059
commit 7517f2a9b3
3 changed files with 254 additions and 0 deletions
@@ -108,6 +108,10 @@ public sealed class PlanningMergeOrchestrator
await DrainAsync(parentTaskId, ct);
}
/// <summary>True when a unit merge for this parent is paused on a conflict (in-memory state).</summary>
public bool HasActiveMerge(string parentTaskId) =>
_states.TryGetValue(parentTaskId, out var s) && s.CurrentSubtaskId is not null;
public async Task ContinueAsync(string planningTaskId, CancellationToken ct)
{
if (!_states.TryGetValue(planningTaskId, out var state) || state.CurrentSubtaskId is null)