mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
fix(frontend): address CodeRabbit review findings on voice conversation mode
Report STT start and capture failures instead of staying on Listening, treat a failed reading as an error, skip replies with no readable text, stop auto-play replaying a reply voice mode already read, focus the text box after Edit in text box, and strip think blocks before text reaches TTS.
This commit is contained in:
1 parent
5d8b2c9445
commit
73af7aec89
8 files changed
+292
-45
No files matched your search
@@ -260,7 +260,7 @@ export function listUnspokenMessages(
|
||||
if (message === undefined || message.type !== 'assistant') continue
|
||||
if (message.time.completed === undefined) continue
|
||||
if (spokenIds.has(message.id)) continue
|
||||
const text = assistantText(message.content).trim()
|
||||
const text = assistantText(message.content, { stripThink: true }).trim()
|
||||
if (!text) continue
|
||||
unspoken.push({ id: message.id, text })
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user