Repository navigation
fix(baileys): restore rc14 QR companion re-pairing after production LOGOUT - #53
Merged
Merged
Conversation
Owner
Author
Coordinator verification — PR #53 (head
|
Neup123
marked this pull request as ready for review
November 10, 2026 18:13
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.
Production incident / scope
Refs #52.
On 2026-11-10 18:10 Europe/Athens, production
chabad-infoentered terminal 401 / LOGOUT, withconnectionStatus=close; QR re-pairing is broken by the unhandledcompanion_reg_refreshflow in the pinned Baileys rc14 (Baileys#2737). Required deployability: Friday 2026-11-13 16:52 Europe/Athens. The PR does not re-pair, publish, merge, or deploy anything.Changes
patches/baileys+7.0.0-rc14.patchfrom evolution-foundation/evolution-api#2727 (cloviscoli) with one upstream-sourced adaptation: the fix(deps): patch baileys to restore WhatsApp device pairing (companion_reg_refresh) evolution-foundation/evolution-api#2727 file lacks the one-line Baileys#2749 pre-login ack fix, so that hunk is added to the same compiledmessages-recv.jspatch. The two original patches are Baileys#2765 (rotate adv secret oncompanion_reg_refresh, re-render the current QR ref, preserve timer, skip registered sessions) and Baileys#2602 (skip incompletelink_code_companion_reg)."baileys": "7.0.0-rc14"inpackage.jsonandpackage-lock.json. No Baileys or Evolution 2.4.0 upgrade.patch-package@^8.0.1in dev dependencies (lockfile entries populated from upstream's verifieddeveloplock; all newly added dependency edges resolved statically).node scripts/patch-libsignal-logging.mjsand follows it inpostinstallwithpatch-package --error-on-fail.patches/beforenpm ci, and install output is no longer suppressed.docs/baileys-rc14-pairing-outage-build-plan.md.Verification status (do not infer green from static inspection)
rm -rf node_modules && npm cinpm run build(tsc --noEmit && tsup)429930eb4d4101c7eda423dc10cd533ff58bd812: GitHub Checks API:total_count=0, combined commit statuses:0, pull-request workflow runs:0. CI is not green.lib/Socket/socket.js/ companion utils grepcompanion_reg_refresh,handleCompanionRegRefresh,makePairingQRRenderer; no installed compilednode_modules/baileystree available here.messages-recv.jsgrepprimary_identity_puband one-lineauthState.creds.me?.id.npx tsx ./test/connection-recovery.test.tsnpx tsx ./test/socket-watchdog.test.tsnpx tsx ./test/disconnection-fields.test.tsStatic patch inspection: 4 compiled-file sections, 9 unified-diff hunks, 0 hunk length/syntax discrepancies. GitHub reports the PR conflict-free (
mergeable_state=clean). This validates only patch formatting, not application to installed Baileys.\n\nStatic evidence: Baileys manifest and lockfile both remain exactly rc14;postinstallretains libsignal + adds fail-fast patch-package; Docker copiespatches/beforeRUN npm ci; 19 lockfile nodes are supplied and the new dependency closure resolves statically. Static checks are not substitutes for the required runtime gates.Required production-side/build-rig commands and grep/test evidence templates are in the in-repo build plan. Do not merge or deploy as verified without a clean install, green build, and the three test passes.
Retirement: remove the patch only when a published Baileys release containing evolution-foundation#2765 ships, followed by an independently reviewed, tested version upgrade.
Final evidence snapshot — head
429930eb4d4101c7eda423dc10cd533ff58bd812Patch-file grep (static, not installed compiled output):
Actual environment/network probe:
A clean
npm ci, build, Docker build, three runtime suites, and grep of installed compiled Baileys files were not runnable, so there is no install success line or test pass/fail count to report. GitHub at this head: 0 check runs, 0 commit statuses, 0 workflow runs; CI not verified. Static patch hunk validation: 4 files, 9 hunks, 0 inconsistent hunk lengths. GitHub reportsmergeable=true,mergeable_state=clean(draft, unmerged). Release gates remain open.