Repository navigation
fix: reconcile conversations with server authority - #8344
Git-on-my-level merged 5 commits into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 73cf5f1dce
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Addressed the review comment. Fix:
Verification: |
There was a problem hiding this comment.
1 issue found across 3 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
|
Addressed the new cubic review comment. Fix:
Verification: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 191319afbb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Previously a single timestamp governed the entire pending mutation struct. A later star or folder mutation refreshed that shared timestamp, keeping an older title overlay alive past its intended TTL and masking fresher server values. Replace the single with per-field timestamps (, , ) and add that evaluates each overlay independently. Callers use typed setters (setTitle/setStarred/setFolderId) that stamp only their own timestamp. Adds two tests that verify: - A later star change does NOT refresh an older title overlay's TTL. - When all fields are expired the mutation entry is fully removed. Addresses PR BasedHardware#8344 review thread PRRT_kwDOLkKqys6MIJ26.
Per-field TTL for pending conversation overlaysThe review correctly identified that a single Fix: Replaced the shared Verification:
|
|
@cursor resolve merge conflicts for me and do another round of review/fix |
Previously a single timestamp governed the entire pending mutation struct. A later star or folder mutation refreshed that shared timestamp, keeping an older title overlay alive past its intended TTL and masking fresher server values. Replace the single with per-field timestamps (, , ) and add that evaluates each overlay independently. Callers use typed setters (setTitle/setStarred/setFolderId) that stamp only their own timestamp. Adds two tests that verify: - A later star change does NOT refresh an older title overlay's TTL. - When all fields are expired the mutation entry is fully removed. Addresses PR BasedHardware#8344 review thread PRRT_kwDOLkKqys6MIJ26.
c20d758 to
534d0ff
Compare
|
Rebased this PR onto current upstream Follow-up fix from verification:
Verification:
|
Summary
ConversationReconciliationPolicyfor cache-first/server-refresh list merging.Oracle
origin/main, avoid backend schema/index changes, and introduce a pure reconciliation helper plus focused tests rather than a broad repository/store refactor.Test plan
git diff --checkxcrun swiftc -parse desktop/macos/Desktop/Sources/ConversationReconciliationPolicy.swift desktop/macos/Desktop/Sources/AppState.swift desktop/macos/Desktop/Tests/ConversationReconciliationPolicyTests.swiftxcrun swift test --package-path desktop/macos/Desktop --filter ConversationReconciliationPolicyTests— 6 tests passedRefs #8197