Skip to content

feat: lsp persistence across app launches#221

Merged
reez merged 3 commits intomainfrom
fix/lsp-persistence-across-app-launches
Jul 23, 2025
Merged

feat: lsp persistence across app launches#221
reez merged 3 commits intomainfrom
fix/lsp-persistence-across-app-launches

Conversation

@reez
Copy link
Copy Markdown
Owner

@reez reez commented Jul 14, 2025

Fix WalletClient to load saved LSP from keychain on startup. Resolves issue where LSP selection reverted to default after restart.

The fix is in WalletClient.start() which now loads the persisted LSP selection from KeyService on app startup.

Description

Notes to the reviewers

Changelog notice

Checklists

All Submissions:

  • I've signed all my commits
  • I have formatted my code with swift-format per .swift-format file

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

Fix WalletClient to load saved LSP from keychain on startup.
Resolves issue where LSP selection reverted to default after restart.

The fix is in WalletClient.start() which now properly loads the
persisted LSP selection from KeyService on app startup.
@reez reez changed the title feat: LSP persistence across app launches feat: lsp persistence across app launches Jul 14, 2025
cursor[bot]

This comment was marked as outdated.

Fixes dependency injection by using self.keyClient.getLSP() instead of
KeyClient.live.getLSP(), ensuring mock mode works correctly and
maintaining proper separation of concerns.
cursor[bot]

This comment was marked as outdated.

Use self.keyClient.getBackupInfo() instead of KeyClient.live.getBackupInfo()
to maintain consistency with LSP loading and ensure both backup info and LSP
data come from the same source (live or mock) in all app modes.
@reez reez merged commit 7f5ac80 into main Jul 23, 2025
2 checks passed
@reez reez deleted the fix/lsp-persistence-across-app-launches branch July 23, 2025 17:44
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.

1 participant