Repository navigation
test(xai): keep barge-in validation stable without truncate ack - #163530
Conversation
Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[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. |
|
Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 8:54 AM ET / 12:54 UTC. ClawSweeper reviewWhat this changesThe PR updates xAI voice release validation to allow a missing truncation acknowledgment while still checking interruption and continued conversation. Merge readiness✅ Ready for maintainer review Keep this useful release-branch backport open. The change preserves meaningful interruption and continuation checks, introduces no identified correctness defect, and remains absent from the pinned main and latest release. Priority: P2 Review scores
Verification
How this fits togetherThe xAI plugin connects OpenClaw voice sessions to the provider’s realtime audio service. Its live validation sends spoken interruptions and checks the resulting transport events, playback clearing, transcription, and response completion. flowchart TD
A[Spoken interruption] --> B[xAI realtime service]
B --> C[Server speech detection]
C --> D[OpenClaw voice bridge]
D --> E[Truncate history and clear playback]
B --> F[Transcription and next response]
E --> G[Live validation result]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +2. Total +2 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the release validator aligned with the provider’s interruption behavior while retaining transcription, response completion, and resumed-context checks. Do we have a high-confidence way to reproduce the issue? Yes, at source level: the existing predicate times out when the provider omits the acknowledgment despite satisfying the other interruption conditions. The authenticated provider scenario was not executed during this review. Is this the best way to solve the issue? Yes. Removing the acknowledgment dependency from the live validator matches the production interruption path and preserves the subsequent behavioral checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cee0906f3877. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Fixes: the 2026.9.8 xAI realtime voice live lane fails after a successful server-VAD barge-in when xAI omits the
conversation.item.truncatedconfirmation event.User Impact
User impact: 2026.9.8 release validation continues to verify audible interruption and resumed conversation without treating an optional provider acknowledgment as a product failure. There is no runtime behavior change.
Why This Change Was Made
This is the
release/2026.9.8backport of #163529. The affected test file was byte-identical on main and the release branch before the cherry-pick. The live test still requires xAI'sinput_audio_buffer.speech_started, OpenClaw's outboundconversation.item.truncate, local playback clearing, post-barge-in transcription, and continued response completion.Evidence
614bec2653c2ca64d59e8b834949dcec668b845e).git diff --check origin/release/2026.9.8...HEAD: passed.