Repository navigation
Settings survive a crash while they are being saved - #95
Merged
Merged
Conversation
|
seaweeduk
force-pushed
the
fix/safe-config-writes
branch
from
November 22, 2026 20:14
a3d771d to
fc2ea37
Compare
Owner
Author
|
/oc Please re-review the change since the first review.
|
|
The symlink finding is resolved in The updated PR description matches the code. No new findings in this follow-up. |
seaweeduk
force-pushed
the
fix/free-decoder-from-steam
branch
from
November 22, 2026 20:58
22680ca to
0c86ba5
Compare
seaweeduk
force-pushed
the
fix/safe-config-writes
branch
from
November 22, 2026 20:58
fc2ea37 to
b71d3b6
Compare
seaweeduk
changed the base branch from
fix/free-decoder-from-steam
to
master
November 22, 2026 20:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Settings and other config files were saved by truncating the file and writing it again in place. If the app crashed or was killed during that write, the file could be left empty or cut short, and the next start lost those settings.
Now every config file is saved to a temporary file beside it, synced to disk, and renamed over the old one. A crash leaves either the old file or the new one, never part of one.
Files saved this way:
settings.confpinned_folders.conf) and per-folder memory (folders.conf)setup.conf)offline.json, which already renamed but did not sync)replaceFile(), replaces the copy that only the SFTP code had.Known and left as is
0600; other config files follow the process umask.Important
AI disclosure
anthropic/claude-opus-5-5highopenai/gpt-6.2-astrahighAgent harness OpenCode 2.3.2