fix(baileys): preserve sessions on transient disconnects#2612
Open
SmartNuvem wants to merge 6 commits into
Open
fix(baileys): preserve sessions on transient disconnects#2612SmartNuvem wants to merge 6 commits into
SmartNuvem wants to merge 6 commits into
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…n-foundation Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Sorry @SmartNuvem, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
we do not accept anything to main, only to develop @SmartNuvem |
Author
|
Thanks for the clarification! I've changed the base branch from main to
develop. Please let me know if anything else needs to be adjusted.
Em sex., 3 de jul. de 2026, 13:13, Daniel Paes ***@***.***>
escreveu:
… *dpaes* left a comment (evolution-foundation/evolution-api#2612)
<#2612 (comment)>
we do not accept anything to main, only to develop @SmartNuvem
<https://github.com/SmartNuvem>
—
Reply to this email directly, view it on GitHub
<#2612?email_source=notifications&email_token=B5I4XKLC5IJPZU43OVT32ML5C7LRLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBXG44TGNJSGUZ2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-4877935253>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B5I4XKOOFFCEHO4B43ECHF35C7LRLAVCNFSNUABFKJSXA33TNF2G64TZHM3DKMJUHA3TENRWHNEXG43VMU5TINZVHE2DCNZWGI3KC5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/B5I4XKOR7JRQ5LKS53DNUST5C7LRLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBXG44TGNJSGUZ2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y>
and Android
<https://github.com/notifications/mobile/android/B5I4XKJU22FSJY3GZ3G4MPL5C7LRLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTIOBXG44TGNJSGUZ2M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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.
Summary
This fixes a regression introduced in 2.4.0-rc2 where transient disconnects
(e.g. DisconnectReason 408) were treated as permanent session closures.
Changes
closestate after transient failures.connection.updateandcreds.updateto avoid race conditions.Validation
Tested on a production-like environment:
Before this patch, instances disconnected within the same day or the following day and remained in
close.After applying this patch, the instance has remained connected beyond the period where the issue consistently occurred, without requiring QR reconnection.
No database schema, licensing, Redis, or authentication behavior was modified.