fix(discord): finalize stream tip before queue-drain Working epoch#100
Merged
Merged
Conversation
When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
patroza
added a commit
that referenced
this pull request
Jul 27, 2026
…och (#100) When a queued follow-up starts, Discord clears the live tip for a new Working ack. If the prior turn's real answer only lived in that tip, it vanished. Promote substantial tip body to a durable final first. Pairs with server turnId rebind fix for the same race.
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
Queue-drain race on t3vm thread
16feaadd-e89d-4101-bcd9-ac7e1d723de0:Fix
Before starting a new stream delivery (turn change / fresh Working ack), if the prior tip has substantial unfinalized body, finalize it first (post final + archive stream-history, delete tips).
Related
fix/queue-drain-assistant-turnid-rebind(projector never rebinds assistant turnId after drain)Test plan
shouldFinalizeStreamBeforeNewDelivery