Skip to content

fix: patch Baileys 6.x getPlatformId bug for pairing codes#86

Merged
gavrielc merged 1 commit into
mainfrom
fix/baileys-platform-id
Apr 1, 2026
Merged

fix: patch Baileys 6.x getPlatformId bug for pairing codes#86
gavrielc merged 1 commit into
mainfrom
fix/baileys-platform-id

Conversation

@gavrielc

@gavrielc gavrielc commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Baileys 6.x getPlatformId sends charCode (49) instead of enum value (1), causing "couldn't link device" errors during pairing. Monkey-patch the function until we migrate to Baileys 7.x where this is fixed upstream.

Type of Change

  • Feature skill - adds a channel or integration (source code changes + SKILL.md)
  • Utility skill - adds a standalone tool (code files in .claude/skills/<name>/, no source changes)
  • Operational/container skill - adds a workflow or agent skill (SKILL.md only, no source changes)
  • Fix - bug fix or security fix to source code
  • Simplification - reduces or simplifies source code
  • Documentation - docs, README, or CONTRIBUTING changes only

Description

For Skills

  • SKILL.md contains instructions, not inline code (code goes in separate files)
  • SKILL.md is under 500 lines
  • I tested this skill on a fresh clone

Baileys 6.x getPlatformId sends charCode (49) instead of enum value (1),
causing "couldn't link device" errors during pairing. Monkey-patch the
function until we migrate to Baileys 7.x where this is fixed upstream.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gavrielc gavrielc requested a review from gabi-simons as a code owner April 1, 2026 09:40
@gavrielc gavrielc merged commit 5846cfc into main Apr 1, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant