Bug Description
When a session.say() line is interrupted, the assistant turn is committed after the user's interruption, leading to a broken chat context that leads to weird LLM behavior.
Example Transcript:
Assistant: Hi this is John with
User: This is who?
Resulting Chat Context:
User: This is who?
Assistant: Hi this is John with
This causes the assistant to finish its sentence, ignoring the user line.
Expected Behavior
User turn should be committed after the interrupted assistant turn.
Reproduction Steps
https://gist.github.com/superMDguy/cfed3a2352bd3d6402bd7d0427fdc979
Operating System
macOS Tahoe
Models Used
No response
Package Versions
Session/Room/Call IDs
No response
Proposed Solution
Additional Context
Looks like this is a regression caused by #4663, but not 100% sure
Screenshots and Recordings
No response
Bug Description
When a
session.say()line is interrupted, the assistant turn is committed after the user's interruption, leading to a broken chat context that leads to weird LLM behavior.Example Transcript:
Resulting Chat Context:
This causes the assistant to finish its sentence, ignoring the user line.
Expected Behavior
User turn should be committed after the interrupted assistant turn.
Reproduction Steps
Operating System
macOS Tahoe
Models Used
No response
Package Versions
Session/Room/Call IDs
No response
Proposed Solution
Additional Context
Looks like this is a regression caused by #4663, but not 100% sure
Screenshots and Recordings
No response