Skip to content

Raise decrypt errors after recording persistent ids#14

Closed
cassiostp wants to merge 1 commit into
masterfrom
codex/raise-decrypt-errors
Closed

Raise decrypt errors after recording persistent ids#14
cassiostp wants to merge 1 commit into
masterfrom
codex/raise-decrypt-errors

Conversation

@cassiostp

@cassiostp cassiostp commented Jun 16, 2026

Copy link
Copy Markdown
  • Stop _onDataMessage from warning and returning for decryption/auth failures that should be visible to library consumers.
  • Keep recording the message persistentId before rethrowing those known errors so reconnects do not redeliver the same message.
  • Add focused Jest coverage for the known rethrow cases, unrelated decrypt failures, and successful notification delivery.

Requested from Brian's review on #13.

Stop swallowing decryption failures in the push receiver client so library consumers still see authentication, missing crypto-key, and missing salt errors. The client still records the persistent id before raising so reconnects do not redeliver the same message.

Also carries forward the existing GCM semicolon lint fix needed for yarn lint on master.

CLI-801
@cassiostp cassiostp changed the title [codex] Raise decrypt errors after recording persistent ids Raise decrypt errors after recording persistent ids Jun 16, 2026
@cassiostp cassiostp closed this Jun 16, 2026
@cassiostp cassiostp deleted the codex/raise-decrypt-errors branch June 16, 2026 22:03
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