Skip to content

Fix main compilation of group membership notifications - #260

Merged
jlucaso1 merged 1 commit into
mainfrom
fix/main-ci
Oct 27, 2026
Merged

jlucaso1 merged 1 commit into
mainfrom
fix/main-ci

Conversation

@jlucaso1

@jlucaso1 jlucaso1 commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Main 54d43f3 fails to compile after #258 and #259 combined: the group notification's NewMessage initializer is missing history_status. All 11 failed jobs across CI, Nightly and Pages report E0063 at this initializer; Pages fails during compilation, before publication.

Set history_status: None for the live group notification, matching other live insertions. Extend the synthetic persistence test to check received/read status after duplicate notifications and reload. No workflow gates change.

Validation: reproduced E0063 on main; formatting and chat-store clippy with all targets/features pass. All 430 chat-store tests pass across 33 test binaries, with one pre-existing ignored measurement, using temporary XDG roots and synthetic in-memory stores. Exact-head CI is green on Linux, macOS, Windows, MSRV and web. The web bundle and all four native release archives passed their validation jobs, including downloaded-set verification.

Summary by CodeRabbit

  • Bug Fixes
    • Group membership events now have consistent read status and sender attribution when retrieved from the chat store, including after the store is reopened.

@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 5e4aacb9-2801-4214-a6a4-3a8c94b0467a
Commits

Reviewing files that changed from the base of the PR and between 54d43f3 and 1a697c8.

Files selected for processing: 2
  • crates/chat-store/src/store/group_membership.rs
  • crates/chat-store/tests/group_membership.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The group-membership message initializer now sets history_status to None. The persistence test checks row counts, sender identity, read status, and membership-event equality after reopening the store.

Changes: Group membership persistence

Layer / File(s) Summary
Initializer and persistence checks
crates/chat-store/src/store/group_membership.rs, crates/chat-store/tests/group_membership.rs
The initializer sets history_status to None. The test checks that two rows are not from the current user and have Read status, both before and after reopening the store. It also compares the reloaded membership event with the previously retrieved event.

Priority: High

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • oxidezap/client#258: Adds the group-membership initializer and persistence test that this PR updates.

Suggested reviewers: greptile-apps

Merge Risk: Minimal · up to 1a697

The change fixes the compilation issue without introducing an identified correctness or persistence risk.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Fix main compilation of group membership notifications" matches the main change. The PR sets history_status to None in the group membership NewMessage initializer, which fixes the E0063 com…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Fix main compilation of group membership notifications" matches the main change. The PR sets history_status to None in the group membership NewMessage initializer, which fixes the E0063 compile error on main. The raw summary also shows a test update for the persistence path, which the title does not mention but does not need to cover. The title is specific, concise, and does not use vague terms.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 2 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jlucaso1

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T14:08:00.968743Z — Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 1a697c831c

ℹ️ 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".

@greptile-apps

greptile-apps Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

Fixes the missing NewMessage field for live group notifications.

  • Group notifications compile with their required history status.

No actionable issues found. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "Fix group membership insertion after his..." · Reviewed by Greptile

@jlucaso1
jlucaso1 marked this pull request as ready for review October 27, 2026 14:06
@jlucaso1
jlucaso1 merged commit 75f7df3 into main Oct 27, 2026
19 checks passed
@jlucaso1
jlucaso1 deleted the fix/main-ci branch October 27, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant