Repository navigation
fix(desktop): queue live-tail ratings until the journal remote id lands - #11529
Merged
Merged
Conversation
There was a problem hiding this comment.
Review completed against the latest diff
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Git-on-my-level
force-pushed
the
fix/chat-rating-until-sync
branch
from
August 14, 2026 00:49
04b3acd to
908e262
Compare
Showing thumbs before sync was correct; PATCHing immediately 404'd and reverted the optimistic rating. Keep the buttons, persist after isSynced. Failure-Class: none Co-authored-by: Cursor <[email protected]>
A queued nil was treated as a missing map entry, so clearing thumbs before the remote id landed never PATCHed. Co-authored-by: Cursor <[email protected]>
Address Cubic review feedback: - P2: drain() now matches queued ratings by clientTurnId when projection replaces a live-tail row (local id) with the kernel turnId (remote id), and PATCHes with the projected remote id so the backend row is found. - P1: flushPendingMessageRatings captures the runtime owner and fences the spawned Task so a PATCH in flight during an account/owner transition is dropped instead of mutating the new session. - P3: remove fake e2e covers: entries for rating files the hermetic flow never exercises. Adds regression tests for the id-remap path and the owner fence.
Git-on-my-level
force-pushed
the
fix/chat-rating-until-sync
branch
from
August 14, 2026 04:04
908e262 to
b228a18
Compare
The owner fence lived in a ChatProvider extension, so `runtimeOwnerId` did not compile. Read `RuntimeOwnerIdentity.currentOwnerId()` instead, restore hermetic covers, and give the remap test a clientTurnId. Failure-Class: none Co-authored-by: Cursor <[email protected]>
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
nilis not treated as a missing map entry).The dual-client quota stub repair from #11522 landed separately in #11535, so this PR is desktop-only.
Test plan
cd desktop/macos && ./scripts/dev-feedback.py --once swift 'ChatMessageRatingPersistenceTests'— 8 tests passedProduct invariants
Failure-Class: none