Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed September 9, 2026, 3:31 PM ET / 19:31 UTC (Revision 3). ClawSweeper reviewWhat this changesAdds an assistant-message Read aloud button that uses Gateway-configured speech providers and plays generated audio through the assistant-media endpoint. Merge readiness⛔ Blocked before merge - 7 items remain Keep open: current main still lacks the requested WebChat action, and this maintainer-protected PR retains useful work. The earlier credential-exposure and release-owned changelog findings remain applicable. Priority: P2 Review scores
Verification
How this fits togetherControl UI displays assistant messages received from the Gateway. This change sends selected message text to Gateway speech synthesis, then retrieves the generated audio for browser playback. flowchart LR
A[Assistant message] --> B[Read aloud button]
B --> C[Authenticated Gateway request]
C --> D[Configured speech provider]
D --> E[Generated audio file]
E --> F[Assistant media request]
F --> G[Browser playback]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The new audio request transfers reusable Gateway credentials into URLs; no dependency or supply-chain changes were introduced. PR surfaceSource +112, Tests +68, Docs +2. Total +182 across 9 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Mantis proof suggestionA real WebChat interaction with network diagnostics would help verify provider-backed playback, alongside the separate authorization rejection evidence. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the existing tts.speak RPC and a browser-local audio Blob in the current chat UI, preserving configured providers without placing Gateway credentials in media URLs. Do we have a high-confidence way to reproduce the issue? Yes for the credential-exposure finding: the introduced URL builder and its test explicitly put the resolved credential into the audio request URL. This is source-proven; no browser or provider run was executed. Is this the best way to solve the issue? No as submitted: Gateway-backed synthesis is appropriate, but current main's existing tts.speak RPC provides the audio directly and avoids the additional credential-bearing file request. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 10e57bf8ab38. LabelsLabel justifications:
EvidenceSecurity concerns:
What 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 (2 earlier review cycles)
|
|
This could be resolved by updating ui. I'll prepare a PR if that sounds good. |
|
Thanks for the read-aloud work. The current Control UI implements this through configured Gateway speech in #170343, with assistant-message controls and playback/error/stop handling. The former Lit tts.convert/audioPath integration has been replaced, so there is no remaining feature change to carry forward from this PR. Closing as superseded. |
Summary
tts.convertGateway RPCmessages.ttsproviders are used instead of browser speech synthesisValidation
pnpm --dir ui test src/ui/chat/grouped-render.test.ts src/ui/controllers/chat.test.tspnpm --dir ui test src/ui/views/chat.test.ts src/ui/app-render.assistant-avatar.test.tspnpm exec oxfmt --check --threads=1 ui/src/ui/chat/grouped-render.ts ui/src/ui/controllers/chat.ts ui/src/ui/controllers/chat.test.ts ui/src/ui/app-render.ts ui/src/ui/views/chat.ts docs/web/webchat.md CHANGELOG.mdgit diff --checkNotes
pnpm tsgo:test:uicurrently fails on current main atsrc/plugins/loader.ts:1381withType 'string[] | undefined' is not assignable to type 'string[]', unrelated to this diff.Refs #45508.