Final code quality improvements: fix error handling and memory management

Co-authored-by: mblanke <9078342+mblanke@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-03 13:00:34 +00:00
parent d0aadefad9
commit 4e3cf99e04
4 changed files with 21 additions and 5 deletions

View File

@@ -22,7 +22,9 @@ const VoiceControls = ({ onCommand, hotkey = ' ' }) => {
return;
}
// Request microphone permission
// Note: We request permission on mount for better UX.
// Alternative: Request only on first use by removing this and letting
// startListening() handle the permission request
requestMicrophonePermission();
// Setup hotkey listener