Repository navigation
refactor(voice): simplify audio worker plumbing - #154498
roboclaw-bot wants to merge 2 commits into
Conversation
Co-authored-by: steipete <[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. |
OpenClaw-Publication: cde7abc6-9cd0-4c03-bca4-a4e277227808 Co-authored-by: steipete <[email protected]>
ca0dbd6 to
d09bfca
Compare
|
Codex review: blocked before merge. Reviewed October 6, 2026, 7:42 PM ET / 23:42 UTC (Revision 3). ClawSweeper reviewWhat this changesConsolidates Discord and OpenAI voice-worker buffering, startup promises, playback cleanup, and callback acknowledgements without intended user-visible changes. Merge readiness⛔ Blocked before merge - 2 items remain Keep open: protected maintainer work still contains useful cleanup beyond current main. No introduced correctness defect was found. Priority: P3 Review scores
Verification
How this fits togetherDiscord and OpenAI voice workers handle timing-sensitive audio outside the Gateway's main event loop. Their control adapters exchange bounded audio batches, completion events, and cancellation signals with voice sessions. flowchart LR
A[Voice session] --> B[Control adapters]
B --> C[Bounded audio buffers]
C --> D[Audio workers]
D --> E[Discord and OpenAI transports]
D --> F[Credits and completion events]
F --> B
Before merge
Agent review detailsSecurityNone. PR surfaceSource -75, Tests +59. Total -16 across 13 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain current main's shared worker owners and integrate only the remaining sample-alignment and playback-settlement improvements. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes behavior-preserving cleanup, and source review found no concrete introduced failure to reproduce. Is this the best way to solve the issue? Yes: reusing existing buffer and deferred owners is a focused simplification, while current-main overlap makes a smaller refreshed patch appropriate. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 45228e1aeed6. 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
History |
Related: #154119
What Problem This Solves
The audio-worker cutover duplicated buffer and lifecycle plumbing that can share existing owners.
User Impact
No intended user-visible change. Worker isolation, bounded queues, cancellation, capture finalization, and playback accounting are preserved. No configuration or stored-data migration is needed.
Why This Change Was Made
Production code across the nine touched production files falls from 3,050 to 2,975 lines: net −75. Discord contributes −14 and OpenAI −61. Tests/support add 59 lines; the whole patch is net −16. No files, core/SDK exports, or generic framework were added. No tests were deleted or reclassified.
Evidence
d09bfca1ac8c5c2a5c07e1faf2737e2c3e4c6ca9; the CI gate completed successfully at 06:29 UTC on September 21.Measured test costs
audio-transport.test.tsrealtime-quicksilver-audio-buffer.test.tsrealtime-quicksilver-socket.runtime.test.tsThe CI figures sum the verbose reporter’s rounded per-test durations. They are not isolated CPU time, full-file wall time, or job duration. Full-file CI wall times were not reported and are unavailable, not zero. Transport evidence comes from successful job
106233580289; both OpenAI files come from successful job106233580307.Worked on by
Work sessions
View the OpenClaw team session