fix(mcp): merge_task marks the task Done after a successful merge
merge_task only flipped the worktree to Merged; it never transitioned the task status. With allowWaitingForReview this left a merged task stuck in WaitingForReview. Approve it to Done on a successful merge (a Done task is already terminal). Mirrors the ApproveAndMergeAsync review flow. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -468,6 +468,12 @@ public sealed class ExternalMcpService
|
||||
|
||||
if (result.Status == TaskMergeService.StatusMerged)
|
||||
{
|
||||
// MergeAsync only flips the worktree to Merged; a merged task must also
|
||||
// reach Done. If it was still awaiting review, approve it now (a Done task
|
||||
// is already terminal and needs no transition).
|
||||
if (task.Status == TaskStatus.WaitingForReview)
|
||||
await _state.ApproveReviewAsync(taskId, cancellationToken);
|
||||
|
||||
string? mergeCommit = null;
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user