From 18464df19520a5c99fb95d431051ff57be23dc9b Mon Sep 17 00:00:00 2001 From: Beingpax Date: Tue, 6 Jan 2026 16:32:41 +0545 Subject: [PATCH] Fix Power Mode not detecting app/website on subsequent recordings when auto-restore is disabled --- VoiceInk/Whisper/WhisperState.swift | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/VoiceInk/Whisper/WhisperState.swift b/VoiceInk/Whisper/WhisperState.swift index 5ba216c..acfb560 100644 --- a/VoiceInk/Whisper/WhisperState.swift +++ b/VoiceInk/Whisper/WhisperState.swift @@ -195,14 +195,8 @@ class WhisperState: NSObject, ObservableObject { self.recordingState = .recording } - if let powerModeId = powerModeId { - await ActiveWindowService.shared.applyConfiguration(powerModeId: powerModeId) - } else { - let hasActiveSession = await PowerModeSessionManager.shared.hasActiveSession - if !hasActiveSession { - await ActiveWindowService.shared.applyConfiguration() - } - } + // Detect and apply Power Mode for current app/website + await ActiveWindowService.shared.applyConfiguration(powerModeId: powerModeId) // Load model and capture context in background without blocking Task.detached { [weak self] in