Voice agent openers re-fire after barge-in: an xAI realtime engine timing bug
Kindly-Duty272 · reddit · 2026-09-27
A developer hit a recurring bug on xAI's realtime voice engine: with a fixed scripted opener, clean calls work fine, but if the caller barges in early (e.g., a quick "Hello?"), the agent re-speaks the same opener mid-sentence — the greeting gets queued twice after an interruption.
- Current workaround: drop the preset first message entirely and put the opener text in the system prompt so the callee speaks first — mostly avoids double-firing, but it's a workaround, not a fix.
- Suspected root cause: turn-detection timing. The server seems to have a 1.3s floor before deciding the caller finished, while their own VAD triggers faster (1.2s); the two clocks may race, causing opener replay.
- The author is surveying other stacks — Vapi, Retell, raw Twilio/Deepgram builds, LiveKit — to see if the issue is engine-specific turn handling or widespread.
More from coding & agent
- Baseten's Guide: Evaluate Open Models for Coding Agents on Your Own PRs — baseten · 2026-11-16
- Google Research open-sources PaperOrchestra, a multi-agent framework for writing AI papers — google-research · 2026-11-16
- ffmpeg-skill gives coding agents local video editing via 42 FFmpeg tools and MCP — kajisho5 · 2026-11-16
- Agents Now Reply to Slack Messages on Their Own, Resolving a Prod Incident Ghost-to-Ghost — iamrobotbear · 2026-11-16
- Engineer's Interview Prep Method: Use Claude to Find Which Answers Undersell Your AI Work — brandon_galang · 2026-11-16
- DeepSeek open-sources its app frontend "chat-demo", already at 3.9k stars — NielsRogge · 2026-11-16