Commit graph

12 commits

Author SHA1 Message Date
ValueOn AG
d3d054b132 commcoach agent integration: keep-alive persistence, input bar, voice controller fixes
Made-with: Cursor
2026-04-01 22:04:02 +02:00
ValueOn AG
9e792bc74f file system and stt and ttss reevisions 2026-03-17 19:19:32 +01:00
ValueOn AG
31bf734def commcoach: voice state machine refactor + document handling + abort + status events
TASK 1: muted as orthogonal flag (separate from VoiceState)
TASK 2: AbortController in sendMessage (abort previous AI calls)
TASK 3: cancelPendingSpeech for text input
TASK 4: silenceTimer reduced to 1s

Made-with: Cursor
2026-03-07 01:02:15 +01:00
ValueOn AG
48215f165c fix: voice transcript cascading - processedIndex nur bei Recognition-Neustart resetten
Made-with: Cursor
2026-03-06 22:55:28 +01:00
ValueOn AG
309d6982e8 commcoach: voice state machine replacing distributed useEffect logic
Made-with: Cursor
2026-03-06 14:43:07 +01:00
ValueOn AG
bbef615e0c commcoach: add TTS audio lifecycle logging for mobile diagnosis
Made-with: Cursor
2026-03-06 14:20:42 +01:00
ValueOn AG
251a9ca1ea fixed stt procedure 2026-03-05 23:41:41 +01:00
ValueOn AG
36b8558dd0 Alle 9 Fixes sind implementiert. Hier die Zusammenfassung:
Fix 1 -- Opening-Prompt: processSessionOpening in serviceCommcoach.py prüft jetzt ob es die erste Session ist (isFirstSession) und gibt der AI einen expliziten Prompt, der das Erfinden von Kontext verbietet.
Fix 2 -- Stabiler Transcript: onresult in CommcoachCoachingView.tsx nutzt jetzt processedResultIndexRef um nur neue Results zu verarbeiten. Finalisierte Teile werden stabil akkumuliert, kein Flackern mehr.
Fix 3 -- Hintergrundgeräusche-Timeout: Neuer silenceTimerRef mit 5s Timeout. Wenn nach onspeechstart kein Text kommt, wird isUserSpeaking automatisch zurückgesetzt.
Fix 4 -- Stop-Button: "Stop" Button erscheint im Session-Header wenn TTS läuft (via isTtsPlaying State, synchronisiert per 200ms Interval mit isTtsPlayingRef).
Fix 5 -- Weitersprechen-Button: lastTtsAudioRef speichert das zuletzt gespielte Audio. stopTts setzt wasInterrupted = true. "Weitersprechen" Button erscheint nach Unterbrechung und spielt das Audio erneut ab.
Fix 6 -- Paralleles TTS: Neue _generateAndEmitTts() Hilfsfunktion. In processMessage und processSessionOpening wird TTS als asyncio.create_task parallel zu _emitChunkedResponse gestartet.
Fix 7 -- JSON-Response: Die AI antwortet jetzt als JSON mit text, speech, documents. Neuer Prompt-Block wird in buildCoachingSystemPrompt angehängt. _parseAiJsonResponse() und _saveGeneratedDocument() im Backend. processMessage und processSessionOpening nutzen die neue Struktur.
Fix 8 -- Loading-States: Neuer actionLoading State in useCommcoach. Alle async Funktionen setzen setActionLoading('key') vor dem Await und null im finally. Buttons zeigen Loading-Text und werden disabled.
Fix 9 -- Umlaute: Alle deutschen Strings in allen CommCoach-Dateien (Backend + Frontend) korrigiert: ae->ä, oe->ö, ue->ü.
2026-03-04 22:53:45 +01:00
ValueOn AG
5186e58e00 iteration 2 done 2026-03-03 23:02:49 +01:00
ValueOn AG
cd14e8a6fb commcoach iteration 1 completed 2026-03-03 22:04:54 +01:00
ValueOn AG
275164e7cb fixed build 2026-03-02 21:24:28 +01:00
ValueOn AG
7077f02104 com feature mvp 2026-03-02 00:51:25 +01:00