Skip to content

fix: keep the settings file when a save fails - #162

Merged
noFAYZ merged 1 commit into
mainfrom
fix/settings-save-155
Oct 7, 2026
Merged

noFAYZ merged 1 commit into
mainfrom
fix/settings-save-155

Conversation

@noFAYZ

@noFAYZ noFAYZ commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Refs #155.

  • write_json_file deleted the target before renaming the temp file over it. A failed rename lost the whole settings file, so every setting reset and later saves could keep failing the same way.
  • The delete is gone (rename already replaces the target), and the rename is retried briefly for antivirus/indexer locks on Windows.
  • Also covers cache files, which use the same writer.
  • Test: a second write replaces the first and leaves no .tmp.

Cause not confirmed; waiting on the reporter's log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
zuno Ready Ready Preview Oct 7, 2026 2:59pm UTC

@noFAYZ
noFAYZ merged commit ef1ec65 into main Oct 7, 2026
10 checks passed

This branch was successfully deployed

1 active deployment
Preview — 053a870a Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant