Skip to content

interrupted sometimes didn't work #4460

Closed
Closed

Description

@Wu-Jiayang

🔴 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.

Image

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 here

How often has this issue occurred?:

  • Always (100%)
  • Often (50%+)
  • Intermittently (<50%)
  • Once / Rare

Activity

  1. added
    live[Component] This issue is related to live, voice and video chat
    on Feb 12, 2026
  2. added theissue type on Feb 12, 2026
  3. llalitkumarrr commented on Feb 18, 2026

    @llalitkumarrr
    Collaborator

    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.

  4. yanran666 commented on Mar 4, 2026

    @yanran666

    I've noticed this issue too. when will it be resolved?

  5. llalitkumarrr commented on Mar 5, 2026

    @llalitkumarrr
    Collaborator

    Hello,

    Apologies for the delay. The PR is still under review. Thank you for your patience.

  6. Wu-Jiayang commented on Apr 8, 2026

    @Wu-Jiayang
    ContributorAuthor

    Hello?

  7. Wu-Jiayang commented on Apr 9, 2026

    @Wu-Jiayang
    ContributorAuthor

    Image
    Why did bidi-demo suddenly stop supporting genai?

  8. wuliang229 commented on Apr 17, 2026

    @wuliang229
    Collaborator

    @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.

  9. wuliang229 commented on Apr 17, 2026

    @wuliang229
    Collaborator

    @Wu-Jiayang you changed from yielding the LlmResponse to conditionally yielding. Did you actually see a duplicated interrupted Events?

  10. Wu-Jiayang commented on Apr 17, 2026

    @Wu-Jiayang
    ContributorAuthor

    @Wu-Jiayang you changed from yielding the LlmResponse to conditionally yielding. Did you actually see a duplicated interrupted Events?

    @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.

  11. added
    needs review[Status] The PR/issue is awaiting review from the maintainer
    on Apr 17, 2026
  12. Wu-Jiayang commented on Apr 28, 2026

    @Wu-Jiayang
    ContributorAuthor
  13. DeanChensj commented on Jun 16, 2026

    @DeanChensj
    Collaborator

    Hi @Wu-Jiayang , #4213 has been merged. I'll close this for now. Feel free to open another issue if you see this reoccurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

live[Component] This issue is related to live, voice and video chatneeds review[Status] The PR/issue is awaiting review from the maintainer

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions