Files
avc-phone-ai/bot.py
tocmo0nlord 7f34b06415 Stop spurious watchdog re-prompts after the call ends
The SilenceWatchdog armed a timer on the goodbye turn; it then fired ~silence_secs
later, after EndCallProcessor had already hung up — logging phantom "re-prompt"s
(3 of 5 in the last batch were after "Goodbye"). Now it stops for good on a
closing keyword (LLMFullResponseEnd) or an EndFrame/CancelFrame, so it never
re-arms once the call is closing. Real mid-call silences still re-prompt.
Runtime-tested: no reprompt after goodbye / endframe; reprompt on normal silence.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 00:14:53 +00:00

38 KiB