[Fix] Live task pages stall after initial connection failures - #3248
Open
roomote-roomote[bot] wants to merge 1 commit into
Open
roomote-roomote[bot] wants to merge 1 commit into
roomote-roomote[bot] wants to merge 1 commit into
Conversation
Contributor
roomote-roomote
Bot
requested review from
brunobergher,
daniel-lxs and
mrubens
as code owners
September 26, 2026 06:03
This branch has not been deployed
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
Initial live-task connection failures now retry in the background every 10 seconds after the bounded connection attempts are exhausted. Once a live connection has been established, the existing 60-second background recovery cadence is unchanged. The retry scheduler accepts a phase-aware interval and safely stops scheduling after cleanup.
Why this change was made
Recent replay evidence showed transient status-0 sandbox/setup requests leaving users on a "Could not reach the host" state that was abandoned before the visible retry action was used. The existing reconnect fix covered established connections, but initial-connection recovery still waited too long for another automatic attempt.
Impact
Users who open a task while its sandbox endpoint is temporarily unreachable get another automatic recovery attempt within the same interaction window, without changing manual Retry/Reconnect behavior or increasing the cadence for already-established connections. Focused client recovery tests, the related SandboxProvider and ErrorFallback suites, web fast type checks, targeted lint, formatting, and diff checks pass.