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 PR addresses two issues in the URI handler workflow to improve user
experience and reliability.
1. Streamline version fallback behavior
Problem: When the URI handler receives a build number that is no longer
available, the application would fall back to the latest version but
display a confirmation dialog. Netflix reported that this confirmation
dialog disrupts the user workflow.
Solution: Removed the confirmation dialog and replaced it with logging.
The handler now silently falls back to the latest available version when
the requested build number is unavailable, maintaining a seamless user
experience.
2. Fix connect page not displaying when Toolbox is already open
Problem: When Toolbox is already running and a URI is executed, the
connect page fails to display. Investigation revealed that the UI event
emitted via MutableSharedFlow(replay = 0) is lost because the UI
collector is not yet active when processEvent() is called.
Solution: Introduced a 66-100ms delay before emitting the UI event. This
delay ensures the collector is ready to receive events, preventing them
from being dropped. The timing was determined through testing and
appears to account for the collector initialization time.
Note: The delay in fix#2 is a workaround for what appears to be a
timing issue with the MutableSharedFlow collector initialization.
0 commit comments