A simulated realtime voice loop with real token streaming, a tool call streaming in parallel, and an interrupt whose latency is measured, not asserted.
Tool results are simulated data. The streaming, the interleaving, and the teardown are real.
Interrupt measurement
Interrupt latency: not measured yet. Start a conversation, then interrupt mid-stream.
Measured with performance.now() around the full teardown: every pending timer cleared, the token and tool streams frozen, and speechSynthesis cancelled. On a healthy browser this lands well under 100 ms.
What this proves
Streaming is a harness property: reply tokens and tool call JSON interleave without either one blocking the other.
Interruption is teardown, not a pause flag: every timer dies, speech cancels, and the halt latency is measured on each press.
State is explicit: listening, thinking, tool calling, speaking, and interrupted are real states with timings on the timeline.