Skip to content

Prevent corrupt pairing state from blocking Bluetooth startup#258

Merged
enaboapps merged 1 commit into
mainfrom
fix/atomic-json-state-257
Jun 27, 2026
Merged

Prevent corrupt pairing state from blocking Bluetooth startup#258
enaboapps merged 1 commit into
mainfrom
fix/atomic-json-state-257

Conversation

@enaboapps

Copy link
Copy Markdown
Contributor

Summary

  • Add shared atomic JSON write helpers for app-owned state files.
  • Recover corrupt pairing state by backing up the unreadable file and creating fresh pairing state.
  • Use atomic writes for pairing state, cursor overlay settings, and pointer movement settings.

Closes #257

Validation

  • npm test -- src/main/json-file-store.test.ts src/main/pairing/pairing-store.test.ts src/main/cursor-overlay-settings-store.test.ts src/main/pointer-movement-settings-store.test.ts src/main/bluetooth/bluetooth-transport.test.ts
  • npm test
  • npm run build

@enaboapps enaboapps added this to the Release 0.1.17 milestone Jun 27, 2026
@enaboapps enaboapps merged commit 3b3d41a into main Jun 27, 2026
1 check passed
@enaboapps enaboapps deleted the fix/atomic-json-state-257 branch June 27, 2026 13:27
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.

Prevent corrupt pairing state from blocking Bluetooth startup

2 participants