DEV Community

Peter Jackman
Peter Jackman

Posted on Originally published at zian.ai

Voice Agent Context Loss Mid-Call: Detect and Fix

An agent that re-greets a caller mid-call has lost its in-call context. Two causes: the realtime session was replaced and handed back as text only, or a summariser compacted the instructions away. Detect the first from one number. In livekit/agents-js issue 2346 , per-turn audio input tokens fell 2,758 to 351 while text held at 17,210.

What this covers

  • Quick answer
  • Why does my AI voice agent greet the caller again in the middle of a call?
  • The Audio-Token Collapse Test: the signal that a session was replaced
  • Cause two: a summariser that deletes my instructions on message 21
  • What each provider tells me before it takes the session away

This is a technical summary. The full guide — with the tables and worked examples — is on our site: *Voice Agent Context Loss Mid-Call: Detect and Fix*.

Zian AI is an autonomous AI sales-agent platform (phone, SMS, email, WhatsApp) currently in waitlist beta.

Top comments (0)