Skip to content

fix: preserve adaptive interruption across tool calls - #6564

Open
chenghao-mou wants to merge 1 commit into
mainfrom
chenghao/fix/AGT-3180-adaptive-interruption-tool-calls
Open

fix: preserve adaptive interruption across tool calls#6564
chenghao-mou wants to merge 1 commit into
mainfrom
chenghao/fix/AGT-3180-adaptive-interruption-tool-calls

Conversation

@chenghao-mou

@chenghao-mou chenghao-mou commented Jul 27, 2026

Copy link
Copy Markdown
Member

Bug: Adaptive interruption could silently drop a user overlap when agent playout resumed after a tool call because the interruption stream received mismatched speech boundaries.

Treat thinking gaps as real speech boundaries and restart overlap inference when playout resumes mid-utterance. Agent-ended overlaps remain inconclusive and no longer count as backchannels; remote forwarding is noted until the protocol carries that marker.

Fixes #6548. Fixes AGT-3180.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@biztex

biztex commented Jul 27, 2026

Copy link
Copy Markdown

This looks like the right fix — treating the thinking gap as a real speech boundary and restarting overlap inference when playout resumes addresses the root cause at the signal source, where my #6550 only made the stream tolerate the redundant start sentinel. The metrics and remote-session coverage go beyond what mine attempted, too.

Closing #6550 in favor of this. If the hermetic stream-level regression tests from it would be useful here (a fake bargein gateway driving InterruptionWebSocketStream through a mid-overlap second segment), happy to adapt them to the new sentinel semantics — just say the word.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adaptive interruption: a second agent speech segment (e.g. after a tool call) disarms an open overlap and silently swallows the interruption

2 participants