keep whatsapp session resident - #239
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a2a56f59d5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Summary
Why
The routine dual-session replacement path could leave an authenticated account without an active socket when WhatsApp closed the old session before the candidate authenticated. Recovery then waited for a later lifecycle event, which appeared to users as messages arriving minutes late.
Residency maintenance should preserve the healthy provider session. Baileys remains responsible for transport keepalives, while the account alarm keeps the Durable Object resident and the ordinary recovery path owns unhealthy reconnects.
Validation