Repository navigation
interrupted sometimes didn't work #4460
Description
🔴 Required Information
Please ensure all items in this section are completed to allow for efficient
triaging. Requests without complete information may be rejected / deprioritized.
If an item is not applicable to you - please mark it as N/A
Describe the Bug:
google/adk-recipes#1069
2026-02-12.11-54-25.mp4
When I speak to interrupt the model while it is generating a response, the system does not trigger the Interrupted event as expected. It triggers 'Turn Complete' event without 'Interrupted'. The interrupted in genai seems work well.
Why is the yield in the else?
Steps to Reproduce:
Please provide a numbered list of steps to reproduce the behavior:
run /python/agents/bidi-demo
Expected Behavior:
A clear and concise description of what you expected to happen.
interrupted
Observed Behavior:
What actually happened? Include error messages or crash stack traces here.
When I speak to interrupt the model while it is generating a response, the system does not trigger the Interrupted event as expected. It triggers 'Turn Complete' event without 'Interrupted'. The interrupted in genai seems work well.
Environment Details:
- ADK Library Version (pip show google-adk): 1.22.1
- Desktop OS:** [e.g., macOS, Linux, Windows] win
- Python Version (python -V):3.10.19
Model Information:
- Are you using LiteLLM: Yes/No
- Which model is being used: (e.g., gemini-2.5-pro) gemini-2.5-flash-native-audio-preview-12-2025
🟡 Optional Information
Providing this information greatly speeds up the resolution process.
Regression:
Did this work in a previous version of ADK? If so, which one?
Logs:
Please attach relevant logs. Wrap them in code blocks (```) or attach a
text file.
// Paste logs here
Screenshots / Video:
If applicable, add screenshots or screen recordings to help explain
your problem.
Additional Context:
Add any other context about the problem here.
Minimal Reproduction Code:
Please provide a code snippet or a link to a Gist/repo that isolates the issue.
// Code snippet hereHow often has this issue occurred?:
- Always (100%)
- Often (50%+)
- Intermittently (<50%)
- Once / Rare

Activity
llalitkumarrr commentedon Feb 18, 2026
Hello @Wu-Jiayang ,
Thank you for raising this issue. We were able to reproduce it and found that streaming continues even after the turn completion is logged, likely due to the model continuing to stream from the buffer. Your PR appears to fix this, it is currently under review and will be merged once all checks are complete.
yanran666 commentedon Mar 4, 2026
I've noticed this issue too. when will it be resolved?
llalitkumarrr commentedon Mar 5, 2026
Hello,
Apologies for the delay. The PR is still under review. Thank you for your patience.
Wu-Jiayang commentedon Apr 8, 2026
Hello?
Wu-Jiayang commentedon Apr 9, 2026
Why did bidi-demo suddenly stop supporting genai?
wuliang229 commentedon Apr 17, 2026
@Wu-Jiayang I'm reviewing your fix now. As for #4460 (comment), we don't maintain the examples codebase so please follow up in that repo.
wuliang229 commentedon Apr 17, 2026
@Wu-Jiayang you changed from yielding the LlmResponse to conditionally yielding. Did you actually see a duplicated interrupted Events?
Wu-Jiayang commentedon Apr 17, 2026
@wuliang229 I didn't actually check for duplicated events — I inferred the potential duplication from the code context. The main fix was that the original 'else' branch would cause interrupt signals to be lost.
Wu-Jiayang commentedon Apr 28, 2026
@wuliang229
DeanChensj commentedon Jun 16, 2026
Hi @Wu-Jiayang , #4213 has been merged. I'll close this for now. Feel free to open another issue if you see this reoccurs.