fix(dashboard): autostash dirty working tree across git pull and surface reapply conflicts
The dashboard's git pull endpoint failed outright when the working tree had local edits or untracked files. It now stashes (including untracked) under a fusion-dashboard-pull-autostash label, performs the pull, and reapplies the stash. If reapplying conflicts, the stash is preserved and GitPullResult surfaces autostashed/stashReapplied/stashConflict plus a message pointing at the stash label so the user can resolve from the Stashes view. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
5
.changeset/fix-dashboard-pull-autostash.md
Normal file
5
.changeset/fix-dashboard-pull-autostash.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Dashboard git pull now autostashes dirty local changes (including untracked files) before pulling and reapplies them on success. If reapplying conflicts, the stash is preserved and the operation reports `stashConflict` with the stash label so the user can resolve later from the Stashes view. Previously a dirty working tree caused the pull to fail outright with no recovery path.
|
||||
Reference in New Issue
Block a user