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();