-
-
Notifications
You must be signed in to change notification settings - Fork 123
feat(wacore): bind five more enums to the catalog and retire a dead event #1310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
db1e262
feat(wacore): bind six more enums to the catalog and retire a dead event
claude 561cea0
fix(chat-store): drop the retired PushNameUpdate consumer
claude 4e42562
refactor(codegen): make an enum's wire default part of its shape
claude b8e202a
fix(wacore): keep CallLinkMedia hand-written
claude c4cf44a
fix(wacore): keep the retired push-name event's variant position
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the status composer's
MediaTypechanges independently—for example, by gaining a status-only kind—the next regeneration will incorrectly add that value toCallLinkMedia, even though this type is used to build and parse call-link stanzas inwacore/src/stanza/group_call.rs.WAWebStatusSetupControlleris not the call-link protocol, and the commit's identical-variant-set match does not establish that it owns the same wire enum; keep this type handwritten until the actual call-link source is identified, or bind that source instead.AGENTS.md reference: AGENTS.md:L5-L5
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, and this is the one binding in the sweep that was actually wrong. Reverted in b8e202a —
CallLinkMediagoes back to hand-written.I checked the catalog before reverting:
WAWebStatusSetupController::MediaTypeis the only entry whose variant set is exactly{audio, video}, and there is no call-link media enum anywhere in the 403, so there is nothing correct to bind instead. Meanwhile the type builds and parses<call_link>throughbuild_call_link_create,build_call_link_joinandparse_call_link_media. So the match was two unrelated two-valued media enums agreeing by coincidence, and a status-only kind added upstream would have landed in call-link stanzas on the next sync.The underlying mistake is worth naming, because my own PR body advertised it as a feature: matching on variant sets is how a candidate gets found, not how it gets decided. The module has to own the wire format we parse. The other five hold up under that test —
MemberAddModefrom the group metadata schema,MemberShareGroupHistoryModefrom the history-share module,PrivacyUserActionfrom the privacy job,GROUP_PARTICIPANT_TYPESfrom the group API, andDecryptFailTypefrom the sameWAWebBackendJobs.flowthat already ownsEncMediaTypeand the<enc>node — each is used for exactly what its module governs. Only this one crossed a domain boundary.That rule is now in the emitter's module doc rather than only here, since a comment on a rejected candidate is not where the next sweep will look.
Generated by Claude Code