Skip to content

fix(drawer): start connections over while reducing resume and reroute - #224

Merged
Tarquinen merged 2 commits into
devfrom
resume-connection-reset
Nov 21, 2026
Merged

Tarquinen merged 2 commits into
devfrom
resume-connection-reset

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Ports iOS #298 (996c6987). When the network changes, when Try Again is tapped, and when the app comes back to the foreground, it now resets the server pools and forgets the cached address while the action is reduced, so the turn's reads start on fresh pools. Before, the reset ran inside the new event stream's effect, so Home's snapshot or an open screen's resume reads could start on the old pool first. A resync while not streaming still skips the reset.

Not visible, so no media. Verified with scripts/check.sh and a test in ServerLinkResetTriggerTests that fails without the change.

Port of iOS #298 (996c6987). Reroute, Try Again and returning to the
foreground now reset the server pools and forget the cached address in
the reducer, before the turn's reads start, instead of inside the new
event stream's effect, where a read could start on the old pool first.
A resync while not streaming no longer resets anything. eventStream
loses its forgettingAddress/resetting parameters.

Verified: scripts/check.sh on the Android VM (BUILD SUCCESSFUL); the new
ServerLinkResetTriggerTests case fails without the change and passes
with it; on the emulator, resuming after 22 s in the background logs the
reset before the session reads, and reconnecting from the banner works.
Review follow-up. The test calls withDependencies and reduce directly
instead of building a throwaway TestStore, and checks that Try Again and
returning to the foreground skip the reset while not streaming.

Verified: the test fails on origin/dev's HomeConnectionFeature and passes
with the change; scripts/check.sh on the Android VM.
@Tarquinen
Tarquinen merged commit 99cb40d into dev Nov 21, 2026
2 checks passed
@Tarquinen
Tarquinen deleted the resume-connection-reset branch November 21, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant