Conversation
…e symlink The pause_video and resume_video guards read /tmp/sutando-live-transcript.txt, which is a symlink the phone-conversation server writes when a call starts — and never clears when the call ends. In voice-agent context the symlink points to the last phone call's transcript, often hours old, so the guard filters for "Caller:" lines from a stale phone session and blocks every pause/resume because it can't find a fresh keyword. Symptom: voice "pause" → "[PauseVideo] BLOCKED — no pause keyword in recent caller speech: '[07:40:37] caller: dismiss [07:40:44] caller: hi. [07:40:48] caller: bye.'" — phone transcript hours stale during voice session 14h later. Fix: pick the freshest of /tmp/sutando-live-transcript-voice.txt (voice-agent writes here) vs the symlink target (phone). If neither is fresh (<60s), fail open — better to honor an explicit pause than block silently. Match Caller: OR User: line prefixes. Susan's hallucination guard (2026-04-16) is preserved when the picked transcript is fresh. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pause_video/resume_videoguards read/tmp/sutando-live-transcript.txt, a symlink that phone-conversation writes on call start and never clears on call end.Caller:lines from a stale phone session, blocks every pause.Symptom from voice-agent.log:
That phone session ended ~14h before the talk-day pause attempt.
Fix
getRecentUserSpeech()helper: pick the freshest of-voice.txt(voice-agent) vs the symlink target (phone), match bothCaller:andUser:line prefixes, return '' if neither is fresh (<60s).Test plan
🤖 Generated with Claude Code