From 42bb79e2b7839d4c3dee6aab0c9baa0fec9772f4 Mon Sep 17 00:00:00 2001 From: mika kuns Date: Fri, 5 Jun 2026 09:03:47 +0200 Subject: [PATCH] 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 --- .../ViewModels/Islands/DetailsIslandViewModel.cs | 10 +++++++--- src/ClaudeDo.Ui/Views/Islands/Detail/WorkConsole.axaml | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/ClaudeDo.Ui/ViewModels/Islands/DetailsIslandViewModel.cs b/src/ClaudeDo.Ui/ViewModels/Islands/DetailsIslandViewModel.cs index c77a924..fdef6b6 100644 --- a/src/ClaudeDo.Ui/ViewModels/Islands/DetailsIslandViewModel.cs +++ b/src/ClaudeDo.Ui/ViewModels/Islands/DetailsIslandViewModel.cs @@ -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 */ } } diff --git a/src/ClaudeDo.Ui/Views/Islands/Detail/WorkConsole.axaml b/src/ClaudeDo.Ui/Views/Islands/Detail/WorkConsole.axaml index 33614e1..c552f0d 100644 --- a/src/ClaudeDo.Ui/Views/Islands/Detail/WorkConsole.axaml +++ b/src/ClaudeDo.Ui/Views/Islands/Detail/WorkConsole.axaml @@ -199,10 +199,10 @@ FontSize="{StaticResource FontSizeMono}" /> -