Skip to content

Commit a52e802

Browse files
nitintfclaude
andcommitted
fix: crash prevention and stability improvements
Critical Fixes: - Exit handler: Replace nested tokio runtime with separate thread + timeout to prevent "Cannot start a runtime from within a runtime" panic - Pill window: Add safe screen query helpers with proper MainThreadMarker handling to prevent crashes on multi-monitor setups - Settings cache: Switch from std::sync::RwLock to parking_lot::RwLock to eliminate lock poisoning issues - Tray menu: Make rebuild_tray_menu async to avoid runtime conflicts - Add tray menu sync when language/microphone changed from UI Recorder Improvements: - Improve thread join with timeout and safe panic message extraction - Better error handling for audio stream errors with context - Add proper cleanup when consumer thread times out State Machine: - Add retry loop with backoff for compare-exchange operations - Better handling of race conditions during state transitions - More informative error messages for debugging Other: - Fix ESLint warning in analytics provider - Add debug logging for tray menu rebuild operations Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3abecc4 commit a52e802

68 files changed

Lines changed: 2893 additions & 515 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@
7777
"react-dom": "^19.1.0",
7878
"react-hotkeys-hook": "^5.2.1",
7979
"react-router-dom": "^7.11.0",
80+
"recharts": "^3.7.0",
8081
"sonner": "^2.0.7",
8182
"tailwind-merge": "^3.4.0",
8283
"tailwindcss": "^4.1.18",
8384
"tauri-plugin-macos-permissions-api": "^2.3.0",
85+
"tauri-plugin-posthog-api": "^0.2.2",
8486
"use-shortcut-recorder": "^2.2.0",
8587
"uuid": "^13.0.0",
8688
"zod": "^4.3.4",

0 commit comments

Comments
 (0)