Repository navigation
fix(whatsapp): add listGroupsLive for real-time group directory - #93996
xialonglee wants to merge 0 commit into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 3:41 AM ET / 07:41 UTC. Summary PR surface: Source +13, Tests +48. Total +61 across 3 files. Reproducibility: yes. at source level: with an empty Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Add an authenticated generic Gateway directory query that executes WhatsApp group discovery through the Gateway-owned Baileys socket, retains config-backed results when the Gateway is unavailable, and proves both paths on the final head. Do we have a high-confidence way to reproduce the issue? Yes at source level: with an empty Is this the best way to solve the issue? No. Registering a static helper as Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2b18ef742648. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +13, Tests +48. Total +61 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (4 earlier review cycles)
|
10f5aa4 to
680b194
Compare
|
The
Both are infrastructure/flaky issues in |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
e7ac40e to
8cfdf2d
Compare
8cfdf2d to
b47b624
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
a83f024 to
1f411a0
Compare
1f411a0 to
359ed2b
Compare
b1f2c90 to
b2d0f62
Compare
b2d0f62 to
e0478e2
Compare
|
AI-assisted (approved by Peter) This capability was relanded as #109886 with xialonglee / Peter Lee preserved as co-author. The maintained implementation was reworked around safe socket and credential ownership: gateway lookups reuse the active owner-controlled Baileys socket; standalone CLI lookups acquire an exclusive owner lease, disable inbound processing, and await socket closure plus credential persistence before releasing ownership. |
What Problem This Solves
The WhatsApp directory exposed only configured group allowlist keys. A linked account with real group memberships but no configured group entries therefore saw no live groups from the directory command.
Fixes #76722.
Maintainer Rewrite
The original patch registered a config-backed alias as the live lookup. The maintained head instead:
No config or environment surface is added.
User Impact
Linked WhatsApp users can discover participating group JIDs and names. A running or connecting gateway remains the connection owner; the CLI never opens a competing socket. Live lookup failures are explicit.
Evidence
Maintained head b2d0f62664e4:
The contributor's linked-account proof on the earlier standalone-socket implementation returned four Baileys group entries and matched the phone's three visible groups, with one Community represented by announcement and subgroup JIDs. Current-head transport behavior is covered with mocked Baileys sockets, as approved for this rewrite.