Fix macOS updater cleanup dispatch - #565
Conversation
Greptile SummaryThis change runs platform-specific disconnection on Tauri’s main thread before completing shared application cleanup, and retains downloaded updater data when cleanup or installation fails. The reported session-cleanup issue was disproved by exercising the claimed subscribe-between-cleanup ordering. On macOS, the subscription callback changes only the Bluetooth connection state and does not set Confidence Score: 5/5Merge-safe based on the verified disconnect-state behavior; no actionable defects remain. There are no final findings. Focused checks covered the claimed interleaving and confirmed that the macOS subscription path cannot produce the stated name-clearing failure. Files Needing Attention: No files require follow-up. Reviews (1): Last reviewed commit: "Fix macOS updater cleanup dispatch" | Re-trigger Greptile |
Closes #564
Root cause
The async updater command called macOS disconnect cleanup from a Tauri worker thread, but the CoreBluetooth runtime is thread-local to the main thread. Installation therefore stopped before applying a downloaded update with The macOS runtime is not initialized.
Changes
Validation