Fix Edge Sync Not Syncing History - Resolve Nginx Permission Denied on Static Assets-How to Apply Stash from Detached HEAD

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.