Repository navigation
feat: a message Evolution cannot decrypt reaches the consumer as messages.undecryptable - #5
Merged
Merged
Conversation
…umer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ages.undecryptable Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ups, every retry, and not for an unlisted decrypt error Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, never for peer messages or ignored groups Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…'s with the same id are one trace Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A message Baileys cannot decrypt (its CIPHERTEXT stub: no session, Bad MAC, invalid PreKey, message absent from the node) was skipped in
messages.upsertwith only a WARN, so a consumer had no trace of it. Circles saw four such group messages on one number between 2026-10-29 and 10-31 (all "No session found to decrypt message"); one came back through the retry receipt, three never did, and proving it took a read of the log archive.Now it reaches the consumer as
messages.undecryptable(subscribed asMESSAGES_UNDECRYPTABLE):{ "key": { ...as Baileys gave it, a DM's @lid swapped into remoteJidAlt as on messages.upsert }, "pushName": "...", "messageTimestamp": 1761934500, "chatKind": "group", "reason": "No session found to decrypt message" }Never a body or the error's own text:
reasonis the constant Evolution matched. It is still not amessages.upsert(no storage, no chatbots). The readable copy a retry brings is amessages.upsertwith the same key id, as before.d17b6648test (red in CI):test/handlers/undecryptable-message.test.ts(both profiles),test/events/undecryptable-webhook.test.ts(/webhook/setaccepts the name, per-instance and global delivery).ff43393efeat (green): the event inEvents,EventController.events, the fourinstance.schemalists and every transport's global config; FORK.md.No
prisma/change.🤖 Generated with Claude Code