The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): dispose the HUD snap shortcut on native window close
pierrenode245efdaaa3fb
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex 404bf05bb1f..20ce3757e55 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -10559,8 +10559,14 @@ function spawnHudWindow(sessionId, profile) {hudWindow = null}- // Closed from its own side (⌘W) — put the app back so the user is never- // left with no surface, and correct every window's toggle.+ // Closed from its own side (⌘W) — closeHudWindow()'s dispose() never ran,+ // so the global snap shortcut would otherwise stay registered (and stuck+ // taken) with no HUD left to apply it to. dispose() is idempotent, so+ // this is safe even if closeHudWindow() already released it.+ hudSnapShortcut.dispose()++ // Put the app back so the user is never left with no surface, and+ // correct every window's toggle.restoreMainWindowFromHud()broadcastHudState(false)})