Skip to content

fix(drawer): stop repeating and offline transcript reads - #225

Merged
Tarquinen merged 2 commits into
devfrom
drawer-transcript-reads
Nov 21, 2026
Merged

Tarquinen merged 2 commits into
devfrom
drawer-transcript-reads

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

Pressing a drawer row no longer restarts the transcript read the drawer already started; it joins it. While offline, the drawer stops reading transcripts and just marks them for the reconnect to read, and losing the connection cancels the reads in flight. Invalidated messages and reverts now mark an off-screen cached copy dirty, so it's read again before it's trusted.

Ports the drawer part of iOS #298 (fd33dc04), without the 5-minute skip iOS later dropped. Nothing visible changes.

Verified: ported the five iOS drawer tests from RequestWaterfallTests into SelectedTranscriptCancellationTests; all five fail on dev and pass here. Full scripts/check.sh passes on the Android VM. Not checked on an emulator, since there's nothing to see.

Port of the drawer part of iOS #298 (fd33dc04). Pressing a drawer row now
joins a transcript read the drawer already sent instead of cancelling and
restarting it (a delayed live-event read is still replaced by one now).
While the server isn't connected, drawer reads and prefetch only mark the
session dirty for the reconnect's snapshot to drain; losing the connection
cancels the speculative reads in flight. Invalidated messages and reverts
mark an off-screen cached copy dirty so it's read again before it's shown.

Ported iOS tests pressingARowJoinsTheReadTheDrawerStarted,
pressingARowStillReplacesADelayedRead, anInvalidatedCopyIsMarkedDirty,
speculativeReadsWaitForTheServer and losingTheConnectionCancelsSpeculativeReads,
and updated the existing tests' expected state as iOS did. All five fail
without the fix. Verified with scripts/check.sh on the Android VM.
Review fixes. CachedTranscriptRefreshed drops the session from
fetchingTranscripts before its refreshingTranscripts guard, as iOS does,
and deleting a session clears it from both sets. The offline test now also
sends AcceptedTranscriptUpdated and checks no prefetch starts (it fails
without the prefetch connection check). Parity note says offline prefetch
is skipped rather than marked dirty.

Verified with scripts/check.sh on the Android VM.
@Tarquinen
Tarquinen merged commit 2f58867 into dev Nov 21, 2026
2 checks passed
@Tarquinen
Tarquinen deleted the drawer-transcript-reads branch November 21, 2026 01:01
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