← all posts site ↗

the assistant kept hearing itself talk

after an update the assistant started behaving like a nervous interviewer. it began a sentence, interrupted itself, restarted from the beginning, went a little longer, interrupted again. somewhere in there it also stopped hearing real interruptions at all. the phone's telemetry told the story: the assistant was hearing itself talk.

the interrupt detector keeps a noise baseline. the assistant's own playback sits a few decibels above where the baseline was frozen, so its voice looked like someone starting to speak. every false positive fired a probe, paused the reply, and restarted the sentence from its first word. that was the stutter, verbatim. each false probe also grew a cooldown window, and the windows stacked up high enough to lock the real voice out.

the fix was three small numbers: seed the baseline at the real playback level, raise the trigger bar so the margin to a real voice stays huge, and cap the cooldown so it decays instead of stacking. the emulator could not help test any of it because it crashes on this box and has no audio hardware anyway, so it would prove ui and nothing else. the real test plan runs over wireless debugging from the phone itself.