Repository navigation
Conversation
icebear02
marked this pull request as ready for review
October 9, 2026 10:18
Wait for replacement EOU tasks, propagate processing failures, and keep turn completion pending until the user message reaches chat history.
Cover replacement EOU tasks, processing failures, and the pipeline history-commit barrier.
Contributor
There was a problem hiding this comment.
Note
Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.
Devin Review found 1 new potential issue.
1 flag not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)
Wait for chat-history insertion only from commit_user_turn while preserving the existing interruption and scheduling lifecycle.
Verify commit_user_turn waits for the chat-history barrier without delaying internal user-turn completion.
Return None explicitly on non-reply paths to satisfy the strengthened internal task result type.
Follow a resumed user to the replacement EOU task and wait for the previous turn message before processing an overlapping turn.
Cover replacement EOU creation after resumed speech and the previous-message barrier for overlapping turns.
Wait for the previous message barrier without allowing an earlier reply failure to drop the next user turn.
Verify an earlier reply failure cannot prevent an overlapping user turn from being processed.
|
Superseded by #7702. I accidentally opened this PR from my secondary account, @icebear02, instead of my primary account, @lumina678. The replacement contains the same final implementation rebased on current main and consolidated into one clean commit. Please continue review on #7702; this PR will be closed to avoid duplicate review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Future[str]APIWhy
commit_user_turn()currently resolves after end-of-turn handling is only scheduled. A caller that awaitscommit_user_turn(skip_reply=True)and immediately callsgenerate_reply()can therefore race the chat-context append and generate against stale history.This keeps the public return type unchanged and scopes the fix to the existing manual-turn lifecycle instead of relying on the global
speech_createdevent.Tests
ruff check,ruff format --check, and Python compilation passed locallyFixes #7585