fix(FN-1024): fix done-task changes tab overcounting and add diff fallback

- Fix TaskChangesTab overcounting changes for done tasks by handling missing commit SHA gracefully
- Add /api/tasks/:id/diff endpoint with fallback for done tasks without merge commit info
- Add comprehensive tests for both TaskChangesTab component and diff route edge cases
- Document done-task Changes tab fallback behavior in README
This commit is contained in:
gsxdsm
2026-04-06 00:07:46 -07:00
parent b125a75eb0
commit 1c76e25aa8
6 changed files with 314 additions and 9 deletions

View File

@@ -143,7 +143,7 @@ When a task reaches **In Review**, Fusion handles merge with rich metadata:
- Merge commit SHA, files changed, insertions/deletions, timestamps
- Smart conflict resolution: lock files ("ours"), generated files ("theirs"), whitespace conflicts
- 3-attempt retry logic with escalating strategies (AI resolve → auto-resolve patterns → `git merge -X theirs`)
- **Changes tab** — View file-level diffs from the merge commit, even after worktree cleanup
- **Changes tab** — View file-level diffs from the merge commit, even after worktree cleanup. Done tasks without a recorded commit SHA show a safe summary fallback instead of inflated repository-wide diffs.
## Multi-Project Support