Skip to content

feat: a message Evolution cannot decrypt reaches the consumer as messages.undecryptable - #5

Merged
AlmogCohen merged 6 commits into
fork/2.3.7from
fork/undecryptable-event
Oct 31, 2026
Merged

AlmogCohen merged 6 commits into
fork/2.3.7from
fork/undecryptable-event

Conversation

@AlmogCohen

Copy link
Copy Markdown
Owner

A message Baileys cannot decrypt (its CIPHERTEXT stub: no session, Bad MAC, invalid PreKey, message absent from the node) was skipped in messages.upsert with 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 as MESSAGES_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: reason is the constant Evolution matched. It is still not a messages.upsert (no storage, no chatbots). The readable copy a retry brings is a messages.upsert with the same key id, as before.

  • d17b6648 test (red in CI): test/handlers/undecryptable-message.test.ts (both profiles), test/events/undecryptable-webhook.test.ts (/webhook/set accepts the name, per-instance and global delivery).
  • ff43393e feat (green): the event in Events, EventController.events, the four instance.schema lists and every transport's global config; FORK.md.

No prisma/ change.

🤖 Generated with Claude Code

AlmogCohen and others added 6 commits November 1, 2026 00:12
…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>
@AlmogCohen
AlmogCohen merged commit 316448a into fork/2.3.7 Oct 31, 2026
4 checks passed
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