feat(ui): rename review Retry to Continue and make Reset discard the worktree

[Continue] keeps the reject-to-queue + resume behaviour. [Reset] now calls
ResetTaskAsync (discards the task worktree and returns it to Idle) behind a
confirmation, replacing the old park-to-idle action.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-06-05 09:03:47 +02:00
parent 561028e67b
commit 42bb79e2b7
2 changed files with 9 additions and 5 deletions

View File

@@ -1470,10 +1470,14 @@ public sealed partial class DetailsIslandViewModel : ViewModelBase
}
[RelayCommand]
private async System.Threading.Tasks.Task ParkReviewAsync()
private async System.Threading.Tasks.Task ResetReviewAsync()
{
if (Task is null || !_worker.IsConnected) return;
try { await _worker.RejectReviewToIdleAsync(Task.Id); }
if (Task is null || !_worker.IsConnected || ConfirmAsync is null) return;
var branchName = $"claudedo/{Task.Id.Replace("-", "")}";
var ok = await ConfirmAsync(
$"Reset working tree?\nThis discards branch {branchName} (and all changes) and returns the task to Idle.");
if (!ok) return;
try { await _worker.ResetTaskAsync(Task.Id); }
catch { /* stale review action; broadcast reconciles */ }
}