feat: add assistant response audio playback#595
Draft
Wolfy18 wants to merge 1 commit intoDimillian:mainfrom
Draft
feat: add assistant response audio playback#595Wolfy18 wants to merge 1 commit intoDimillian:mainfrom
Wolfy18 wants to merge 1 commit intoDimillian:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Assistant responses in CodexMonitor only exposed quote and copy actions.
Users had no way to listen to long responses, and there was no option to use the current conversation model to produce a shorter audio summary when full playback was too verbose.
That forced users into manual reading even when the response content was better consumed as audio.
Root Cause
The message UI had no audio action surface and no shared playback controller.
The frontend also had no way to extract speakable text from rendered markdown, and the backend had no hidden summary-generation command that respected the selected conversation model across both app and daemon runtimes.
Fix
This PR adds assistant response audio playback for full responses and model-generated summaries.
generate_message_audio_summarybackend command in shared core, app, daemon, and frontend IPC layersUser Impact
Assistant responses with text now show an audio control that lets users listen to the full reply or request a shorter spoken summary using the current conversation model.
Playback is limited to one active response at a time, and users can stop audio immediately from the same control.
Validation
Passed:
npm run test -- src/features/messages/hooks/useMessageAudio.test.tsx src/features/messages/components/Messages.test.tsx src/services/tauri.test.tsnpm run typecheckAttempted but blocked in this environment:
cd src-tauri && cargo checkwhisper-rs-sysrequirescmake, andcmakeis not installed in this environment