Repository navigation
Backup: carry the coach's setup, API keys and custom API included - #50
Merged
Merged
Conversation
The coach's provider, every provider's key and model, and the custom (local / own server) API's address, key, model and options live in the encrypted pulseloop_secure store, which the archive didn't carry, so a phone change lost the whole coach setup. Calibration, physiology, units and check-in hours live there too and were lost the same way. ArchivedSettings now carries an allowlist of keys from that store (SECURE_KEYS) and restores only those keys, leaving the phone's own state in the file alone. The archive is plain JSON, so the Backup screen now warns that backup files expose the API keys. AGENTS.md and the design canvas's Backup board are updated to match. Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
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.
The coach's conversations, memories, summaries, goals and food preferences were already in the archive. Its setup was not. That setup lives in the encrypted
pulseloop_securestore:So a phone change lost all of it. Calibration (BP / glucose offsets), physiology, units and coach check-in hours live in the same store and were lost the same way.
Change
ArchivedSettingscarries an allowlist of keys from that store (SECURE_KEYS), not the whole file. The phone's own entries (onboarding, developer mode, ring app id) stay.CI green on cd5103c. Not tried on a device.
Generated by Claude Code