Repository navigation
feat(android): add Listen action speaking assistant messages via gateway TTS - #100772
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 847c2eec3a
ℹ️ 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".
|
Codex review: needs real behavior proof before merge. Reviewed July 6, 2026, 2:22 PM ET / 18:22 UTC. Summary PR surface: Source +109, Tests +106, Docs +1, Other +683. Total +899 across 19 files. Reproducibility: yes. for the review blockers from source: start Listen playback and then start a New chat, or simulate a failed Android TextToSpeech initialization before a later fallback attempt. I did not run device audio playback, and the PR body says that proof is still pending. Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Fix the Android lifecycle and local TTS retry defects, rebase the dirty branch onto current main so it consumes the already-merged gateway API cleanly, and then provide real Android playback proof before merge. Do we have a high-confidence way to reproduce the issue? Yes for the review blockers from source: start Listen playback and then start a New chat, or simulate a failed Android TextToSpeech initialization before a later fallback attempt. I did not run device audio playback, and the PR body says that proof is still pending. Is this the best way to solve the issue? No: the feature shape is plausible, but this head is not the best merge candidate until lifecycle cleanup covers New chat, local TTS init failures can retry, the dirty branch is rebased, and playback is proven on device. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6bc661ce14c8. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +109, Tests +106, Docs +1, Other +683. Total +899 across 19 files. View PR surface stats
Acceptance 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
Review history (2 earlier review cycles)
|
ccdaec6 to
b0d0ca7
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b0d0ca7c82
ℹ️ 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".
b0d0ca7 to
a8b66de
Compare
8babb16 to
906f51b
Compare
a8b66de to
90ea963
Compare
|
Land-ready at What changed:
Proof:
Known proof gap: the exact proof variant is installed on a connected Pixel 10a, but the device remained locked, so audible gateway-clip and on-device fallback capture could not be completed. No automated or CI failures remain. |
|
Merged via squash.
|
…way TTS (openclaw#100772) * docs(android): document the chat Listen action * feat(android): add Listen action for assistant messages
What Problem This Solves
Android users cannot hear an assistant reply from the chat transcript (tracking issue: #100708). Gateway support landed in #100770; the iOS client landed in #100771.
Why This Change Was Made
MessageSpeechControllercalls gatewaytts.speak, passes the full format/MIME/extension metadata through the existingTalkAudioPlayer, and falls back to AndroidTextToSpeechwhen synthesis or clip playback is unavailable. A generation token prevents superseded completions from clearing newer playback state.chatMessagePlainText, the same visible-text projection already used by Copy, Share, and Reply.User Impact
Long-press an assistant reply and choose Listen. OpenClaw uses the configured gateway TTS provider when available and the device voice otherwise, with no new player dependency.
Evidence
tbx_01kwwbfhfzkzhzj2xt84x4vsy3: full:app:testPlayDebugUnitTest,:app:ktlintCheck, and:app:assemblePlayDebug— green on the final rebased tree.MessageSpeechControllerTestplusChatMessageActionsTest: 10/10, including RPC request/metadata preservation, gateway and playback fallbacks, stop/supersede, blank input, and transcript text projection.entries=2764 changed=false.90ea96348683e427bbcf49c7aa28c4b94771bde1.