Repository navigation
fix(providers): preserve realtime transcripts and final tool arguments - #116891
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 11:20 AM ET / 15:20 UTC. ClawSweeper reviewWhat this changesThe PR changes OpenAI and xAI realtime provider event handling so user and assistant transcripts, transcription failures, and authoritative completed tool-call arguments reach the voice session correctly. Merge readiness⛔ Blocked until stronger real behavior proof is added - 6 items remain Keep this PR open for human review. The checkout could not run even a read-only inspection command because the sandbox failed while configuring loopback networking, so I could not verify the current head, applicable scoped policy, source behavior, history, or the claimed proof artifact; the existing Priority: P1 Review scores
Verification
How this fits togetherOpenAI and xAI realtime provider bridges receive WebSocket events and translate them into transcript callbacks, tool-call execution requests, and operator-visible errors for OpenClaw voice sessions. These outputs affect what users hear or see in the session and which arguments reach an invoked tool. flowchart LR
Provider[Realtime provider WebSocket] --> Bridge[Provider event bridge]
Bridge --> Transcript[Transcript callbacks]
Bridge --> ToolCall[Tool-call requests]
Bridge --> Error[Error callbacks]
Transcript --> Session[Voice session]
ToolCall --> Session
Error --> Session
Decision needed
Why: The Before merge
Agent review detailsSecurityNone. PR surfaceSource +26, Tests +357. Total +383 across 6 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Review the exact rebased head after the inspection environment is restored, then require a redacted after-fix WebSocket trace or terminal transcript showing each corrected provider event before merge. Do we have a high-confidence way to reproduce the issue? Unclear. The PR body describes a localhost WebSocket reproduction on a frozen baseline, but the read-only inspection environment failed before that setup, the current head, or a linked runtime artifact could be checked. Is this the best way to solve the issue? Unclear. The described provider-owned fixes are plausible, but it is not yet possible to confirm that they are the narrowest correct solution without reading the exact branch, current main, upstream event types, and sibling handling. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against d8b30b7a7f55. LabelsLabel 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)
|
b99da31 to
6371676
Compare
|
Merged via squash.
|
Co-authored-by: Peter Steinberger <[email protected]>
Summary
Distinct root causes
Verification
e051a7bb4a6ba69b87391e990b00813114b1d482; exact local candidate:b99da311b8100d5a71cea59afb3868f6ae69b117.main; no hosted model or live provider was called.speech decoder explodedfor both providers, corrected{ city: "Paris" }tool calls and authoritative empty{}final arguments, xAIuser partial, correctedcorrected assistantfinal text, and independent["yes", "yes"]streaming-transcription turns.oxfmt --check,git diff --check, exact parent SHA, and clean isolated worktree checks passed.node_modules/openai/src/resources/realtime/realtime.ts:462,node_modules/openai/src/resources/realtime/realtime.ts:4730,node_modules/openai/src/resources/realtime/realtime.ts:4770, andnode_modules/openai/src/resources/beta/realtime/realtime.ts:2112.../codex/codex-rs/codex-api/src/endpoint/realtime_websocket/protocol_v1.rs:42,../codex/codex-rs/codex-api/src/endpoint/realtime_websocket/protocol_v2.rs:32,../codex/codex-rs/codex-api/src/endpoint/realtime_websocket/protocol_v2.rs:39, and../codex/codex-rs/codex-api/src/endpoint/realtime_websocket/methods.rs:1215.Explicit exclusions
The already-landed Mistral final-transcript fix and held cross-owner public
response.doneterminal-status event-contract change are untouched. Equivalent Deepgram/ElevenLabs repeated-phrase deduplication remains a separately scoped provider-owner follow-up.