Git Detached HEAD: Practical Checklist and Fixes - Recovering Uncommitted Work After Detached HEAD in Git-Fix pnpm Store Path Errors

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