Skip to content

fix: persist Mesh Radio off across foreground/BLE events (#71) - #75

Open
chtnnh wants to merge 3 commits into
ni5arga:mainfrom
chtnnh:fix/71-radio-off-persists
Open

fix: persist Mesh Radio off across foreground/BLE events (#71)#75
chtnnh wants to merge 3 commits into
ni5arga:mainfrom
chtnnh:fix/71-radio-off-persists

Conversation

@chtnnh

@chtnnh chtnnh commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Persists Mesh Radio preference (protestchat.radioEnabled.v1) in SecureStore.
  • RadioAccessGate auto-starts only via shouldAutoStartRadio(bleReady, userEnabled) — a deliberate Settings off survives AppState/BLE status events.
  • Settings startRadio / stopRadio write the preference; panic wipe resets to on with the fresh identity.

Closes #71

Test plan

  • npm test / npm run typecheck (shouldAutoStartRadio cases)
  • Device: Settings → Mesh Radio off → background → foreground → radio stays off; toggle on resumes

chtnnh and others added 3 commits July 23, 2026 12:51
Store deliberate off in SecureStore and only auto-start when BLE is ready
and the user has not turned the radio off, so unlock/foreground cannot
silently resume advertising.

Co-authored-by: Cursor <cursoragent@cursor.com>
CI's `npx expo install --check` started failing after upstream SDK 57
patch bumps (expo ~57.0.8 and related packages).

Co-authored-by: Cursor <cursoragent@cursor.com>
Lock @napi-rs/wasm-runtime's @emnapi/core and @emnapi/runtime peers at
the top level so CI's npm ci does not demand an unlocked 1.11.2.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

[High] Mesh Radio off toggle does not persist, restarts silently on next foreground or BLE event

1 participant