feat(KB-617): add Changes tab to task detail modal for viewing file diffs

- Add baseCommitSha field to tasks for diff computation baseline
- Track modified files in executor and store in database
- Add /api/tasks/:id/diff endpoint to serve unified diffs
- Add getTaskDiff() API client function in dashboard
- Create TaskChangesTab component with file list and diff viewer
- Integrate Changes tab into TaskDetailModal with proper styling
- Add changeset for the new diff viewer feature
This commit is contained in:
gsxdsm
2026-03-31 22:58:38 -07:00
parent d5fbdf0124
commit 96802938a0
11 changed files with 571 additions and 18 deletions

View File

@@ -0,0 +1,10 @@
---
"@gsxdsm/fusion": minor
---
Add Changes tab to task detail modal showing files modified by the agent and their diffs.
- Track `modifiedFiles` and `baseCommitSha` on tasks during execution
- New API endpoint `GET /tasks/:id/diff` returns file list and patches
- New `TaskChangesTab` component with expandable file diffs
- Changes tab visible for tasks in in-progress, in-review, or done columns