Repository navigation
fix(client): retain live messages during transcript hydration - #2
Draft
replicas-connector[bot] wants to merge 1 commit into
Draft
replicas-connector[bot] wants to merge 1 commit into
replicas-connector[bot] wants to merge 1 commit into
Conversation
Track rows changed while transcript reads are in flight and reconcile the latest local rows over stale snapshots. Keep removals and optimistic admissions consistent with the message index and pagination cursor. Fixes anomalyco#56725 Co-Authored-By: Bhupesh Cholake <[email protected]> Co-Authored-By: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>
replicas-connector
Bot
force-pushed
the
transcript-hydration
branch
from
October 18, 2026 13:41
52d2e5e to
471caa4
Compare
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.
Issue for this PR
Fixes anomalyco#56725
Type of change
What does this PR do?
A delayed transcript response can erase a live assistant or replace its streamed text with an older version. Reconcile rows changed during the read over the snapshot, preserving removals, optimistic admissions, the message index, and pagination.
Implemented and tested with AI assistance.
How did you verify your code works?
packages/client:bun test --conditions=browser test/solid-transcript-race.test.ts. 4 regressions pass: absent/stale assistant snapshots, cancellation, and ordinary snapshot replacement. Regression assertions fail against the parent implementation.bun typecheckpasses inpackages/client.bun run checkpasses from the repository root (34 packages). The first attempt was killed by memory pressure while two full checks ran together; the isolated rerun passed.origin/devand this branch; no additional existing-test failures were observed. The failures involvetoMatchObjectassertions on Solid store proxies.Screenshots / recordings
Client projection logic; no visual change.
Checklist
Co-Authored-By: Bhupesh Cholake [email protected]
Co-Authored-By: replicas-connector[bot] <replicas-connector[bot]@users.noreply.github.com>