Skip to content

fix(desktop): show window before Keychain runtime initialization - #18

Merged
openai0229 merged 1 commit into
mainfrom
fix/macos-keychain-startup
Aug 5, 2026
Merged

fix(desktop): show window before Keychain runtime initialization#18
openai0229 merged 1 commit into
mainfrom
fix/macos-keychain-startup

Conversation

@openai0229

Copy link
Copy Markdown
Contributor

Summary

  • create the configured Tauri window before opening the OS-backed vault
  • initialize RuntimeHost asynchronously and gate every desktop command on readiness
  • surface startup failures in a native dialog and exit non-zero after acknowledgement
  • abort and join pending initialization before shutting down a ready runtime

Root cause

The signed macOS app waited in SecKeychainFindGenericPassword for authorization to an older cdhash-bound Keychain item before Tauri created its window or entered the event loop. This made an authorization wait look like a windowless launch hang.

Verification

  • cargo check -p chat2db-desktop --all-targets
  • cargo test -p chat2db-desktop --lib (37 passed)
  • cargo clippy -p chat2db-desktop --all-targets -- -D warnings
  • git diff --check

@openai0229
openai0229 merged commit bb784dd into main Aug 5, 2026
10 checks passed
@openai0229
openai0229 deleted the fix/macos-keychain-startup branch August 5, 2026 05:37
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