* Perfect! I have successfully fixed the jumpy diff reload issue. Here's a summary of what I implemented:
## Fix Summary
The problem was that when the coding agent was running, the diff refreshed every 2 seconds and showed a full loading spinner that replaced the entire diff content, creating a jarring user experience.
**Key Changes Made:**
1. **Added separate loading state** - Created `isBackgroundRefreshing` state to track background updates separately from initial loading
2. **Modified `fetchDiff` function** - Added an `isBackgroundRefresh` parameter to differentiate between initial loads and background refreshes
3. **Updated diff rendering** - The full loading spinner now only appears on initial load, while background refreshes show a subtle spinning indicator with "Updating..." text
4. **Improved user experience** - The diff content remains visible during background refreshes, with just a small indicator showing the update is in progress
**The fix ensures:**
- Initial diff loads still show the full loading spinner for proper UX
- Background refreshes (every 2 seconds during coding agent execution) show a subtle updating indicator
- The diff content remains visible and stable during background updates
- No more jarring disappearing/reappearing of the entire diff section
The build and linting all pass successfully, confirming the implementation is solid and ready for use.
* Fixed! The formatting issues in `TaskDetailsPanel.tsx` have been resolved. All files now use Prettier code style.