You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Revert "fix(native-chat): keep chats an older Orca saved after a downgrade (#42783)" - #42962
On profiles whose chat store was converted by a build before #42783 (internal team/hourly builds), the first launch of a build with #42783 treats every saved chat as changed by an older Orca:
Those profiles lack the new per-chat revision markers, so every chat looks continued: closed chats get tabs again, and converted chats get a second copy.
A teammate's profile went from 1,650 to 9,085 tabbed chats, with 1,967 copies matching #42783's copy IDs. The renderer slowed with it.
The revert removes the per-launch reconcile. Stores already reconciled keep their extra metadata keys, which nothing reads after this revert. Chats it already reopened or copied stay as they are, and none are deleted. A repair for those profiles and a corrected downgrade fix will follow separately.
Profiles upgrading straight from a release (no store converted yet) never hit the mismatch: their first copy writes the new receipt and markers.
No actionable comments were generated in the recent review.
Walkthrough
The changes remove legacy chat revision tracking and reconciliation from journal database initialization and import paths. Existing destination databases now return without absorbing older Orca writes. Initial creation still records a legacy-source receipt, and nonempty WAL receipts now record only size. The recorded-state key for session tabs becomes module-local, and the persistence test fixture clears all metadata rows during reset.
Merge Risk: Minimal · up to 76ce1
This revert stops the per-launch reconciliation that could reopen closed chats and create duplicates on profiles converted by earlier builds. Chats already reopened or copied are not removed, and the PR says a repair is planned separately. No remaining merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names a revert of PR #42783 and the feature it added, which is the main change in the changeset. The diff removes the legacy-chat reconcile path, the per-chat revision API, and the WAL recei…
Description check
The description follows the template's core content. It explains the problem (profiles converted by pre-#42783 builds, which lack WAL fields and revision markers, were misread as changed), the mechani…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names a revert of PR #42783 and the feature it added, which is the main change in the changeset. The diff removes the legacy-chat reconcile path, the per-chat revision API, and the WAL receipt fields that #42783 introduced, so the title matches the changeset's primary intent. It is a revert title, so it states the reverted PR but not the user-facing effect.
Full details: Description check
Explanation
The description follows the template's core content. It explains the problem (profiles converted by pre-#42783 builds, which lack WAL fields and revision markers, were misread as changed), the mechanism of the revert (removing the per-launch reconcile), the observed impact (tab count growth and duplicate copies), and the residual state of affected profiles. It also cites the revert target. It does not fill in the ELI5, Linked Issue, Visual Proof, Testing checkboxes, Risk level, or Checklist, so several template sections remain missing.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
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
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.
Reverts #42783.
On profiles whose chat store was converted by a build before #42783 (internal team/hourly builds), the first launch of a build with #42783 treats every saved chat as changed by an older Orca:
A teammate's profile went from 1,650 to 9,085 tabbed chats, with 1,967 copies matching #42783's copy IDs. The renderer slowed with it.
The revert removes the per-launch reconcile. Stores already reconciled keep their extra metadata keys, which nothing reads after this revert. Chats it already reopened or copied stay as they are, and none are deleted. A repair for those profiles and a corrected downgrade fix will follow separately.
Profiles upgrading straight from a release (no store converted yet) never hit the mismatch: their first copy writes the new receipt and markers.