Repository navigation
fix(chat): stop reading replies aloud by default - #1615
Conversation
Make automatic chat speech opt-in for fresh profiles and missing settings. Preserve saved preferences and manual Read aloud, with settings persistence regression coverage. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 5:26 PM ET / 21:26 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR makes automatic chat speech opt-in for fresh profiles and missing preferences, preserves saved choices and manual playback, and adds documentation and persistence tests. Merge readiness✅ Ready for maintainer review The change remains useful: main and the latest release still enable automatic speech by default. No actionable patch defect was found. The declared interactive-proof blocker complies with repository reporting policy and does not create an external-contributor proof gate for this collaborator-authored PR. Priority: P2 Review scores
Verification
How this fits togetherCompanion loads speech preferences from local settings and uses them to decide whether incoming chat replies should play aloud. Manual playback uses a separate capability check. flowchart TD
Settings[Saved or fresh settings] --> Preference[Automatic speech preference]
Reply[Incoming chat reply] --> Check[Preference and speech capability check]
Preference --> Check
Check --> Automatic[Automatic audio playback]
Manual[Manual Read aloud action] --> Capability[Speech capability check]
Capability --> Audio[Manual audio playback]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep the existing playback checks and saved preferences, with quiet defaults implemented at both settings initialization boundaries. Do we have a high-confidence way to reproduce the issue? Yes, from source: on pinned main, fresh settings with Text-to-speech enabled also satisfy the automatic-reply playback predicate without a separate opt-in. Live WinUI audio behavior was not executed. Is this the best way to solve the issue? Yes. Changing both initialization defaults uses the existing preference and playback paths while preserving explicit saved choices and manual playback. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f879af8a5661. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Scoped maintainer triage verdictNEEDS_HUMAN_TEST. Take confidence: 82%. Recommendation confidence: 98%. Reviewed head: Basis and remaining gatesThe default changes in SettingsData/SettingsManager preserve an existing explicit true preference intentionally. Reported full build, Shared 4,224, Tray 3,896 and 33 focused tests passed. Missing evidence is actual fresh-profile mute state and first-reply silence, alongside successful manual playback, opt-in automatic playback and preservation of existing enabled profiles. No speculative source rewrite is requested. To reach 90%+ take confidencebkudiess: prove fresh profile starts muted and first reply silent, manual playback works, opt-in works, and existing true preference survives. Reported Floor + 33 focused tests are good; UI/audio proof remains missing. Here, Floor means final-head Quoted execution results are author/maintainer receipts reviewed during the scoped triage, not tests rerun by this posting session. Missing or stale-head proof is not a pass. A dedicated child session is preparing a read-only revalidation/closeout plan; no implementation, destructive execution, CI rerun or merge is authorized by this verdict. |
What Problem This Solves
Fixes: Companion chat replies are read aloud unexpectedly when speech output is enabled without choosing automatic playback.
User Impact
Chat is quiet by default for new profiles and saved settings without a read-aloud preference. Manual Read aloud remains available when Text-to-speech is enabled.
Existing saved preferences are preserved, including
VoiceTtsEnabled=truesaved by older releases. Those users can turn off Settings > Voice > Read responses aloud once. This change does not migrate existing enabled preferences or modify a running installation.Why This Change Was Made
Make automatic spoken replies opt-in in both shared settings and fresh Companion profiles, without changing speech permissions or manual playback.
Evidence
Regression tests cover fresh profiles, missing saved preferences, all combinations of playback permission and explicit read-aloud preference, and persistence across save/reload. Focused settings and speech-readiness tests: 33 passed.
Hanselman review
Independent reviews used
claude-opus-5.5(high reasoning) andgpt-6-astra(high reasoning, long context). Both found no actionable code defects in the same exact patch.tts.speakuses a separate speech pathNo code fixes were requested by the reviewers. Fix confidence is not applicable to intentional compatibility or missing evidence.
Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: verify the initial muted state and a silent first reply in an isolated Companion profile; verify manual Read aloud still works. Not verified / blocked: no authorized interactive runtime proof collected in this session.Validation
.\build.ps1dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter 'FullyQualifiedName~SpeechSetupReadinessTests|FullyQualifiedName~SettingsRoundTripTests'Test projects were built before the initial
--no-restoreruns to avoid fresh-worktree no-ops. Tests usedOPENCLAW_REPO_ROOTand isolated tray data, roaming-appdata and local-appdata roots.Real Behavior Proof
38207f900f31da2dac0d7c0469dba0c785fee6ce. Build, tests and both reviews ran on its identical source tree before commit, based onf879af8a56615c5826fab73bed02d6f04a4281d9; patch fingerprint74f5a0f2cf3400b185afbb0f3be406ea6a947855. No source changes followed validation or review.FreshSettings_EnablingTtsDoesNotEnableAutomaticReadAloudandSavedSettingsWithoutReadAloudPreference_DefaultToQuietpass. The permission/preference matrix and save/reload tests pass.Security Impact
Compatibility and Migration
VoiceTtsEnabledsetting is now false.Review Conversations