Skip to content

ConfigStore: recover from read errors, watch a missing config directory - #203

Merged
mblauberg merged 1 commit into
mainfrom
lane/store-fixes
Nov 4, 2026
Merged

mblauberg merged 1 commit into
mainfrom
lane/store-fixes

Conversation

@mblauberg

Copy link
Copy Markdown
Owner

Summary

Two ConfigStore fixes: (1) reloadConfig now revalidates identical bytes while a configProblem is set, so a restored file clears read-only; (2) startWatching watches the nearest existing ancestor while the config directory is absent and rearms as directories appear (event-driven).

How checked

New tests: aReadFailureClearsOnceTheIdenticalFileIsBack, watchingAMissingDirectoryFollowsItsCreation (temp dirs only).

Docs

docs/companion.md watching paragraph updated.

Agent evidence

swift build ok; swift test --filter PureMouseAppSupportTests: 530 tests, both new tests pass. 8 issues in unrelated tests under the lane sandbox: NotificationPermissionTests, UpdatePreferencesWatchTests (defaults subprocess), ConfigFileBackupTests symlink path (/private resolution). Not touched by this change.

@mblauberg mblauberg added the bug Something isn't working label Nov 4, 2026
@mblauberg
mblauberg merged commit 93b396b into main Nov 4, 2026
2 checks passed
@mblauberg
mblauberg deleted the lane/store-fixes branch November 4, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant