You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains 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
This PR addresses an issue with asynchronous calls in the mention functionality. The main changes include:
Enhanced mention result handling:
Added call-id and call-time to track individual calls
Updated the transfer-mention-result function to include these new fields
Improved on-change-text event:
Introduced a call-id to uniquely identify each call
Added the current timestamp to the RPC call parameters
Refined on-change-text-success event:
Implemented a check to ensure the response matches the most recent call
Added response time logging for performance monitoring
Only update the app state if the response is for the latest call
These changes aim to resolve race conditions and ensure that the UI always reflects the most recent user input when dealing with mentions. The addition of call tracking and response time logging will help with future performance optimizations.
thank you @qfrank , there is a PR with composer simplification, #20125 , there were changes and improvements for mentions as well, i would wait for it merged first
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
This PR addresses an issue with asynchronous calls in the mention functionality. The main changes include:
Enhanced mention result handling:
call-id
andcall-time
to track individual callstransfer-mention-result
function to include these new fieldsImproved
on-change-text
event:call-id
to uniquely identify each callRefined
on-change-text-success
event:These changes aim to resolve race conditions and ensure that the UI always reflects the most recent user input when dealing with mentions. The addition of call tracking and response time logging will help with future performance optimizations.
Relate status-go PR
Testing notes
mention suggestion should work as before
Platforms
status: ready