Repository navigation
fix: preserve full chat text for Tray TTS - #900
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 6, 2026, 1:01 AM ET / 05:01 UTC. Summary Reproducibility: yes. from source inspection: current main truncates assistant notification text at 200 characters and Tray TTS reads that same preview field. I did not run a live Windows tray reproduction in this read-only review. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the narrow full-text-for-TTS split after current-head Tray read-aloud proof is added and exact-head required validation finishes cleanly, keeping notifications/history/categorization on the compact preview text. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main truncates assistant notification text at 200 characters and Tray TTS reads that same preview field. I did not run a live Windows tray reproduction in this read-only review. Is this the best way to solve the issue? Yes, the proposed split is the narrow maintainable fix because full text stays limited to the TTS path while preview text remains the source for notifications, history, and categorization. Merge readiness still depends on real behavior proof and completed exact-head validation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fcc74778a35c. Label changesLabel changes:
Label justifications:
Evidence reviewedAcceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c4e0a41637
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (_settings?.VoiceTtsEnabled == true) | ||
| { | ||
| _ = (_chatCoordinator?.SpeakResponseAsync(notification.Message) ?? Task.CompletedTask); | ||
| _ = (_chatCoordinator?.SpeakResponseAsync(speechText) ?? Task.CompletedTask); |
There was a problem hiding this comment.
Clamp or chunk full TTS text before playback
When VoiceTtsEnabled is on and the selected/default provider is ElevenLabs, a normal prose assistant response whose sanitized text is over 5,000 characters is now passed in full here; ElevenLabsTextToSpeechClient.SynthesizeAsync rejects text longer than TtsCapability.MaxTextLength (5000), and SpeakConfiguredTextAsync only logs the warning, so the response is not spoken at all. Before this change the value was the 200-character preview, so long responses regress unless the full text is chunked or clamped before calling SpeakResponseAsync.
Useful? React with 👍 / 👎.
Summary
Thanks @ArtLupo for the contribution.
Validation
Current head:
c4e0a4163719628d37c2c9f906357dd62d06da36Security and compatibility
FullMessageis optional.