chore(FN-4527): complete Steps 4-5 — verify gates and add changeset

Fusion-Task-Id: FN-4527
Fusion-Task-Lineage: de75c453-dc86-43d2-9cc5-50b20ee7014d
This commit is contained in:
Fusion
2026-05-14 18:00:50 -07:00
committed by gsxdsm
parent 5d8b1393be
commit 816575c4a9
3 changed files with 20 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
---
"@runfusion/fusion": patch
---
Fix stale "files changed" counts on done task cards. The `/api/tasks/:id/diff`
endpoint and the TaskCard done-task badge no longer fall back to the stored
`task.mergeDetails.filesChanged` value, which can be stale after a rebase-and-
push (see FN-4526). The endpoint now always derives stats from a live
`git show --shortstat <commitSha>` when a merge SHA is resolvable, and the
TaskCard treats the endpoint's response — including `0` — as authoritative.
The stored `mergeDetails.filesChanged` is shown only as a transient placeholder
while the live fetch is in flight.