Commit graph

10 commits

Author SHA1 Message Date
ValueOn AG
0a5fa20cb8 fixed voice feat commcoach 2026-04-01 21:59:28 +02:00
ValueOn AG
1f42c015d6 fixes commcoach 2026-03-28 22:29:15 +01:00
patrick-motsch
b6c01fd203 commcoach: fix double extensions, improve AI document generation quality and action prompts
Made-with: Cursor
2026-03-07 02:09:30 +01:00
patrick-motsch
740d2a0b49 commcoach: email subject uses context title instead of UUID, AI generates HTML directly
Made-with: Cursor
2026-03-07 01:28:51 +01:00
patrick-motsch
364e431749 commcoach: backend abort handling + compression + document pre-AI-call + status events
TASK 5: Backend abort handling (cancel previous processMessage tasks)
TASK 6: Compression thresholds lowered (25->15, 15->10)
TASK 7: Combine pending user messages into single prompt
TASK 8: Document handling with pre-AI-call intent detection
TASK 9: Granular status events during AI processing

Made-with: Cursor
2026-03-07 01:02:18 +01:00
patrick-motsch
d7ba24f61a fixed stt procedure 2026-03-05 23:41:37 +01:00
patrick-motsch
12b0d3d36e 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:41 +01:00
patrick-motsch
f4940cf9e1 iteration 2 done 2026-03-03 23:02:53 +01:00
patrick-motsch
5486a87b9a commcoach iteration 1 completed 2026-03-03 22:04:52 +01:00
patrick-motsch
f5fd1d2406 com feature mvp 2026-03-02 00:51:27 +01:00