Commit bb362aa
fix(progress): gate merged-lines counter on cleanup
`mergeTask` already gated `recordTaskMerged()` on `cleanup === true` so
that only completed merge+cleanup lifecycles count toward "Merged today"
(the fix from issue #151). `recordMergedLines()` sat above the gate and
ran on every merge call regardless of cleanup, so the side-by-side
sidebar counters could drift out of sync:
- Merge without cleanup (e.g. "merge & keep") bumped the lines totals
but not the merged-today counter.
- A later close via closeTask never bumps merged-today, so the task
contributed lines but was never counted as a merged task.
Move the call inside the same `if (cleanup)` block so both stats share
one gate and one source-of-truth event.1 parent a89dae3 commit bb362aa
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
1116 | 1116 | | |
1117 | 1117 | | |
1118 | 1118 | | |
| 1119 | + | |
| 1120 | + | |
1119 | 1121 | | |
1120 | 1122 | | |
1121 | | - | |
| 1123 | + | |
1122 | 1124 | | |
1123 | 1125 | | |
1124 | 1126 | | |
| |||
1138 | 1140 | | |
1139 | 1141 | | |
1140 | 1142 | | |
| 1143 | + | |
1141 | 1144 | | |
1142 | 1145 | | |
1143 | 1146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
592 | | - | |
593 | 592 | | |
594 | 593 | | |
| 594 | + | |
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
| |||
0 commit comments