From c035720b37a5ed9c498a71d02709ad8b5b774d66 Mon Sep 17 00:00:00 2001 From: mika kuns Date: Thu, 4 Jun 2026 15:24:06 +0200 Subject: [PATCH] fix(ui): populate diff meter when selecting a finished task --- src/ClaudeDo.Ui/ViewModels/Islands/DetailsIslandViewModel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ClaudeDo.Ui/ViewModels/Islands/DetailsIslandViewModel.cs b/src/ClaudeDo.Ui/ViewModels/Islands/DetailsIslandViewModel.cs index b57d239..73a00ed 100644 --- a/src/ClaudeDo.Ui/ViewModels/Islands/DetailsIslandViewModel.cs +++ b/src/ClaudeDo.Ui/ViewModels/Islands/DetailsIslandViewModel.cs @@ -623,6 +623,8 @@ public sealed partial class DetailsIslandViewModel : ViewModelBase WorktreePath = null; WorktreeStateLabel = null; BranchLine = null; + DiffAdditions = 0; + DiffDeletions = 0; AgentState = "idle"; LatestRunSessionId = null; _suppressAgentSave = true; @@ -668,6 +670,9 @@ public sealed partial class DetailsIslandViewModel : ViewModelBase WorktreeBaseCommit = entity.Worktree?.BaseCommit; WorktreeStateLabel = entity.Worktree?.State.ToString(); BranchLine = entity.Worktree is { } w ? $"{w.BranchName} \u2190 main" : null; + var (add, del) = ParseDiffStat(entity.Worktree?.DiffStat); + DiffAdditions = add; + DiffDeletions = del; AgentState = StatusToStateKey(entity.Status); await LoadAgentSettingsAsync(entity, ct); ct.ThrowIfCancellationRequested();