Skip to content

fix(chat): stop reading replies aloud by default - #1615

Merged
karkarl merged 1 commit into
mainfrom
bkudiess-chat-reply-playback
Oct 6, 2026
Merged

karkarl merged 1 commit into
mainfrom
bkudiess-chat-reply-playback

Conversation

@bkudiess

@bkudiess bkudiess commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

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=true saved 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) and gpt-6-astra (high reasoning, long context). Both found no actionable code defects in the same exact patch.

Review note Opus 5.5 GPT-6 Astra Reconciliation
Existing saved enabled preferences remain enabled MEDIUM scope note, not a code bug Intentional compatibility, not a defect Preserved by design; one-time opt-out documented above
Explicit node tts.speak uses a separate speech path LOW clarification Not flagged Unchanged command permission behavior, outside this automatic-playback fix
Live UI/audio proof missing Proof blocker Proof blocker HIGH consensus; keep this PR draft until interactive proof is collected

No code fixes were requested by the reviewers. Fix confidence is not applicable to intentional compatibility or missing evidence.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required 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

Command Result
.\build.ps1 Passed; all projects built, documentation gate passed
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore 4,224 passed, 0 failed, 34 skipped
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore 3,896 passed, 0 failed, 0 skipped
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter 'FullyQualifiedName~SpeechSetupReadinessTests|FullyQualifiedName~SettingsRoundTripTests' 33 passed, 0 failed

Test projects were built before the initial --no-restore runs to avoid fresh-worktree no-ops. Tests used OPENCLAW_REPO_ROOT and isolated tray data, roaming-appdata and local-appdata roots.

Real Behavior Proof

  • Environment tested: local Windows, isolated automated test profiles only.
  • PR head: 38207f900f31da2dac0d7c0469dba0c785fee6ce. Build, tests and both reviews ran on its identical source tree before commit, based on f879af8a56615c5826fab73bed02d6f04a4281d9; patch fingerprint 74f5a0f2cf3400b185afbb0f3be406ea6a947855. No source changes followed validation or review.
  • Exact command: focused test command above, with console and TRX logging.
  • Evidence after fix: FreshSettings_EnablingTtsDoesNotEnableAutomaticReadAloud and SavedSettingsWithoutReadAloudPreference_DefaultToQuiet pass. The permission/preference matrix and save/reload tests pass.
  • Observed result: automatic-playback eligibility is false by default while manual-playback readiness remains true when the capability is enabled.
  • Screenshot or artifact links verified? N/A. No UI screenshots or runtime audio proof claimed.
  • Not verified / blocked: rendered initial speaker state, actual first-reply silence, manual audio playback, and explicit opt-in playback in the live WinUI app. Automated settings tests are not a substitute for interactive proof.

Security Impact

  • New permissions or capabilities? No.
  • Secrets or tokens handling changed? No.
  • New or changed network calls? No.
  • Command or tool execution surface changed? No.
  • Data access scope changed? No.

Compatibility and Migration

  • Backward compatible? Yes; existing explicit preferences and manual playback are preserved.
  • Config or environment changes? Yes; the default for a missing VoiceTtsEnabled setting is now false.
  • Migration needed? No.
  • Upgrade action: only users with a previously saved enabled preference who want quiet replies need to turn off Read responses aloud.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

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]>
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@bkudiess
bkudiess marked this pull request as ready for review October 2, 2026 21:22
@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 5:26 PM ET / 21:26 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: 38207f900f31da2dac0d7c0469dba0c785fee6ce

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, compatible settings correction with meaningful regression coverage and no actionable code findings; interactive behavior remains transparently unverified.
Proof confidence 🌊 off-meta tidepool Not applicable: The collaborator-authored PR is exempt from the external-contributor proof gate. Settings tests exercise the changed defaults and persistence, while actual WinUI mute rendering and audio playback remain explicitly blocked under the maintainer-scheduled pool. Source inspection verifies preserved serialized boolean preferences without migration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The collaborator-authored PR is exempt from the external-contributor proof gate. Settings tests exercise the changed defaults and persistence, while actual WinUI mute rendering and audio playback remain explicitly blocked under the maintainer-scheduled pool. Source inspection verifies preserved serialized boolean preferences without migration.
Evidence reviewed 8 items Pinned introduced change: The verified base-to-head delta changes two default assignments, their documentation, and regression coverage across five files. No permission, provider, command, dependency, or workflow implementation changes are introduced.
Still necessary on main and release: Inspection of pinned main and v2026.9.4 shows VoiceTtsEnabled still initialized to true. The requested quiet default is therefore not already implemented in either inspected version.
Existing-state compatibility: Load deserializes existing settings, and NormalizeLoadedData copies the loaded record without replacing VoiceTtsEnabled. Serialization includes boolean values. Explicit saved true and false preferences remain intact; only fresh profiles and an absent property receive the new false default.
Findings None None.
Security None None.

How this fits together

Companion 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]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test delta production +3/-3; tests +64/-0; docs +6/-0 The implementation changes defaults without growing production code, with focused persistence coverage.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Unexpected automatic chat audio is a bounded user-facing improvement with saved preferences preserved.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The collaborator-authored PR is exempt from the external-contributor proof gate. Settings tests exercise the changed defaults and persistence, while actual WinUI mute rendering and audio playback remain explicitly blocked under the maintainer-scheduled pool. Source inspection verifies preserved serialized boolean preferences without migration.

Evidence

What I checked:

  • Pinned introduced change: The verified base-to-head delta changes two default assignments, their documentation, and regression coverage across five files. No permission, provider, command, dependency, or workflow implementation changes are introduced. (src/OpenClaw.Shared/SettingsData.cs:98, 38207f900f31)
  • Still necessary on main and release: Inspection of pinned main and v2026.9.4 shows VoiceTtsEnabled still initialized to true. The requested quiet default is therefore not already implemented in either inspected version. (src/OpenClaw.Shared/SettingsData.cs:98, f879af8a5661)
  • Existing-state compatibility: Load deserializes existing settings, and NormalizeLoadedData copies the loaded record without replacing VoiceTtsEnabled. Serialization includes boolean values. Explicit saved true and false preferences remain intact; only fresh profiles and an absent property receive the new false default. (src/OpenClaw.Tray.WinUI/Services/SettingsManager.cs:342, 38207f900f31)
  • Production playback boundary: Automatic notification playback requires both VoiceTtsEnabled and NodeTtsEnabled. Both native chat surfaces derive initial mute state from that predicate. Manual playback checks NodeTtsEnabled separately and bypasses automatic mute in the chat coordinator. (src/OpenClaw.Tray.WinUI/Services/SpeechSetupReadiness.cs:14, 38207f900f31)
  • Regression coverage and reported validation: Added tests cover fresh settings, a missing preference, four permission/preference combinations, and save/reload preservation. The captured PR body reports a passing build, 4,224 shared tests, 3,896 tray tests, and 33 focused tests. These are contributor-reported results; this read-only review did not execute builds or tests. (tests/OpenClaw.Tray.Tests/Presentation/SpeechSetupReadinessTests.cs:9, 38207f900f31)
  • Proof policy and re-review continuity: The previous review had no findings and recommended isolated WinUI proof. The captured body still explicitly marks initial speaker rendering, first-reply silence, manual audio, and opted-in audio as blocked. AGENTS.md and the proof skill permit visible evidence or an explicit blocker; docs/PROOF_POOLS.md identifies this pool as maintainer-scheduled and capacity-dependent. The author is a COLLABORATOR, so the ordinary external-contributor gate does not apply. The prior recommendation remains useful scheduling guidance rather than a mandatory contributor remediation. (docs/PROOF_POOLS.md:32, 38207f900f31)

Likely related people:

  • bkudiess: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • calebeden: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • christineyan4: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • When authorized interactive capacity is available, attach current-head evidence of quiet first replies, manual playback, and explicit automatic-playback opt-in.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-02T21:21:59.618Z sha 38207f9 :: needs changes before merge. :: none

@karkarl

karkarl commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Scoped maintainer triage verdict

NEEDS_HUMAN_TEST. Take confidence: 82%. Recommendation confidence: 98%.

Reviewed head: 38207f900f31da2dac0d7c0469dba0c785fee6ce. Live state refreshed October 5, 2026 (UTC): open, non-draft, merge state CLEAN, CI Gate SUCCESS. A clean merge state is not proof of validation against the eventual landing base.

Basis and remaining gates

The 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 confidence

bkudiess: 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 .\build.ps1, dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore and dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore, with real restore/build first on a fresh worktree. Add the touched-owner suites. UI means windows-winui-interactive with isolated data and visible changed-state proof; other hardware/installer/Gateway pools must match the affected behavior. Recheck the actual landing base, required CI and final review; rerun affected proof if integration changes the 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.

@karkarl
karkarl merged commit 9dedabe into main Oct 6, 2026
44 of 46 checks passed
@karkarl
karkarl deleted the bkudiess-chat-reply-playback branch October 6, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants