Skip to content

fix: preserve manual commits during vad activity - #7812

Merged
chenghao-mou merged 12 commits into
mainfrom
chenghao/fix/AGT-3388-preserve-manual-commit
Nov 10, 2026
Merged

chenghao-mou merged 12 commits into
mainfrom
chenghao/fix/AGT-3388-preserve-manual-commit

Conversation

@chenghao-mou

@chenghao-mou chenghao-mou commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Based on #7811. VAD onset preserves pending manual commits, including after clear resets the live turn. Automatic turn detection still cancels pending delivery on resumed speech.

await session.commit_user_turn()
session.clear_user_turn()  # Later VAD onset preserves the committed snapshot.

Extends @vignesh-koruverse’s #7011 VAD guard to cover clears during delivery.

Fixes #7010. Addresses AGT-3388.

Initial prompt and agent context

Model: GPT-6.1

Can you investigate https://linear.app/livekit/issue/AGT-3740/manual-turn-detection-clear-user-turn-after-commit-user-turn-resolves

okay, let's fix it in a draft PR with the guard approach. Should we fix 7010 too? What was the issue?

yeah, let

's create a new PR for that as well.

take a look at the comments. I think they are valid. We should take a snapshot and commit the snapshot. Clear only affects the live data.

okay, let's commit and push the changes as refactor

Co-authored-by: Ahmet Sakar <56402843+ahmetTW@users.noreply.github.com>
@chenghao-mou chenghao-mou added the review_effort:high Needs broad context and substantial validation label Oct 14, 2026
chenghao-mou and others added 2 commits October 14, 2026 12:20
Co-authored-by: DDT <141296842+Hugo-DDT@users.noreply.github.com>
Co-authored-by: Ahmet Sakar <56402843+ahmetTW@users.noreply.github.com>
@chenghao-mou
chenghao-mou force-pushed the chenghao/fix/AGT-3388-preserve-manual-commit branch from 6488d08 to 43eb6f1 Compare October 14, 2026 12:00
@chenghao-mou
chenghao-mou changed the base branch from main to chenghao/fix/AGT-3740-guard-manual-turn-clear October 14, 2026 12:01
@chenghao-mou
chenghao-mou force-pushed the chenghao/fix/AGT-3388-preserve-manual-commit branch from 43eb6f1 to a692ede Compare October 14, 2026 12:17
@chenghao-mou
chenghao-mou force-pushed the chenghao/fix/AGT-3388-preserve-manual-commit branch from a692ede to 405a28b Compare October 14, 2026 16:12
@chenghao-mou
chenghao-mou marked this pull request as ready for review November 10, 2026 12:28
@chenghao-mou
chenghao-mou requested a review from a team as a code owner November 10, 2026 12:28

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

Devin Review

Base automatically changed from chenghao/fix/AGT-3740-guard-manual-turn-clear to main November 10, 2026 13:37
…-preserve-manual-commit

# Conflicts:
#	livekit-agents/livekit/agents/voice/audio_recognition.py
@chenghao-mou chenghao-mou added review_effort:low and removed review_effort:high Needs broad context and substantial validation labels Nov 10, 2026
@chenghao-mou
chenghao-mou merged commit 54235e7 into main Nov 10, 2026
23 of 24 checks passed
@chenghao-mou
chenghao-mou deleted the chenghao/fix/AGT-3388-preserve-manual-commit branch November 10, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manual mode: VAD START_OF_SPEECH cancels a committed user turn and strands _user_turn_committed

2 participants