vp staged reports a saved recovery patch that is missing after restore failure on Windows

Aperta
#3,356 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@voidzero-bot ci sta già lavorando.

Dal 4/11/2026.

  • #3357 di @voidzero-bot — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
git, rust
Ambito
tooling

Direzione di ricerca

Start by locating the vp staged recovery path that emits “Failed to restore unstaged changes!” and writes unstaged.patch; the issue does not name a file or test. Reproduce the restore failure on Windows in a Git worktree, then inspect whether recovery leaves a durable patch or has already restored the changes. Done means the message accurately reports a patch that remains available or confirms recovery succeeded; pull request #3357 is already open.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

- P3: minor bug triage: fix verified

[!NOTE]
🤖 gpt-6.1-sol responding on behalf of Elliot

On Windows, a pre-commit hook running vp staged completed fmt, lint, and knip, then failed while restoring an unstaged formatting-only change:

Failed to restore unstaged changes!
Done reverting to original state!
Unstaged changes have been kept back in a patch file:
<git-worktree-dir>/lint-staged/<id>/unstaged.patch
pre-commit script failed (code 1)

Immediately afterward, the reported patch path did not exist. The staged source changes were intact and git diff showed no unstaged diff. This happened in a Git worktree after formatting an import change before committing; another changed-file validation command was also running. I have not isolated whether that concurrent validation contributed.

Please ensure the recovery message names a durable patch that remains available, or explicitly report that recovery already succeeded and no patch remains. A missing patch after a failed-restore message makes it hard to establish whether changes were preserved. No private paths or source data are included here.

Lingua principale
Rust
Stelle
6.5k
Fork
297
Merge medio
1g 1h
PR unite (30g)
249

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di voidzero-dev/vite-plus

Tutte le issue di voidzero-dev/vite-plus

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.