Repository navigation
Fix draft loss and cache eviction after server switches - #1114
Merged
Merged
Conversation
Keep an equal queued draft save when an earlier detached save cleans up. Evict empty transcript placeholders before committed transcripts. Keep an SSE client already opened for the new server during a rebuild.
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.
Summary
Three follow-up fixes for server switching:
Checks
Unit tests:
testDebugUnitTest: 4631 passed, 0 failed.OpenCode MobileTests: 3931 passed, 0 failed.RoomSessionCacheStoreTestuses a fake DAO with its own copy of the ordering, so it does not exercise the changed Room query. That query was run directly in SQLite with one real row and one placeholder: the old query evicts the real row and the new query evicts the placeholder.Live check, once per platform, against two local scenario harness servers running protocol v2: added the second server, switched between them, and confirmed a session draft was still present after switching back and after an app relaunch.
Issue
Follow-up to #1104.
Risks / Follow-ups
86cb95406.mainthen gained Fix Android Scroll to end moving up inside tall replies #1103, which touches two Android scroll files that do not overlap this change and merges cleanly. It was not retested locally with Fix Android Scroll to end moving up inside tall replies #1103.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.