[Fix] Discord drops task request when user links account - #1022
Merged
mrubens merged 2 commits intoAug 3, 2026
Conversation
Contributor
Author
|
No new code issues found. See task
Reviewed f658dd7 |
Contributor
Author
|
Fixed in |
mrubens
marked this pull request as ready for review
August 3, 2026 12:37
mrubens
requested review from
brunobergher,
daniel-lxs and
mrubens
as code owners
August 3, 2026 12:37
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.
What changed
Discord now retains an unlinked user's latest attempted task request for 10 minutes. When the user completes
/link, Roomote replays that request through the normal Discord intake path, preserving new-task, existing-thread, attachment, routing, and configured channel behavior.Pending writes are ordered atomically by Gateway receipt time, with the Discord event ID as a tie-breaker, so an older event that finishes processing later cannot replace a newer request.
If replay fails, both the pending request and one-shot link code are restored so the operation can be retried safely.
Why this change was made
Previously, account linking attributed future requests correctly but discarded the request that prompted the user to link. Users had to repeat themselves after completing setup.
Impact
Users who link their Discord account shortly after attempting to start work can continue directly from the original request without resending it. Existing linking behavior remains unchanged when there is no recent pending request.