fix: 5er-Bundle — Wake-Word, Spotify-Latenz, File-Limit, Connection-Refused

- WakeWord Doppel-Trigger: detectionInProgress-Guard gegen Native-Event-
  Race + setBackground/setForeground statt setResumeCooldown im AppState.
- Media-Pause beim App-Oeffnen: 1.5s Startup-Suppression im Kotlin
  emitDetected() — Mikro-Spin-up-Spike triggert kein false-positive mehr.
- Spotify Fast-Path im Brain: einfache Media-Commands (naechster Track,
  pause, play, lauter, ...) matchen via Regex und gehen direkt aufs
  spotify-Skill statt durch Claude. ~1.5s statt 5-10s pro Befehl.
- File-Limit auf 1 GB hochgezogen (war 70 MB). RVS maxPayload +
  Bridge max_size auf 1500 MB; Node-Heap im RVS-Container auf 4 GB.
- TriggerBrowser / Datei-Manager Connection-Refused: brainApi._send
  fast-failt bei disconnected RVS statt 30s zu timeouten, und beide
  UIs reloaden automatisch beim Reconnect-Event.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-06 08:27:08 +02:00
co-authored by Claude Opus 4.7
parent 886b4409d2
commit e82e07e3a2
10 changed files with 249 additions and 11 deletions
+14
View File
@@ -708,6 +708,20 @@ const SettingsScreen: React.FC = () => {
};
}, []);
// Datei-Manager: Auto-Reload bei RVS-Reconnect — sonst zeigt das offene
// Modal den Fehler "Connection refused" ewig an, obwohl die Verbindung
// schon wieder da ist. Triggered nur wenn das Modal gerade offen ist.
useEffect(() => {
const unsub = rvs.onStateChange((state) => {
if (state === 'connected' && fileManagerOpen) {
setFileManagerError('');
setFileManagerLoading(true);
rvs.send('file_list_request' as any, {});
}
});
return () => unsub();
}, [fileManagerOpen]);
// --- QR-Code scannen ---
const openQRScanner = useCallback(() => {