Repository navigation
Conversation
- Widen WhatsAppConnectionControllerHandle to expose getSocket(): WASocket | null - Add getSocket() implementation in WhatsAppConnectionController - New agent-tools-group.ts: create/update/info/leave group management - Register createWhatsAppGroupTool() in channel.ts agentTools array
Standalone plugin that registers the whatsapp_group tool via the Gateway plugin SDK. Accesses the Baileys socket through the global connection controller registry. Actions: create, update, info, leave.
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes are blockedOpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph. Detected dependency graph changes:
If this PR intentionally needs a dependency graph change, ask a repository admin or member of The action will approve the current head SHA ( |
| async function fetchImageBuffer(pictureUrl: string): Promise<Buffer> { | ||
| if (pictureUrl.startsWith("file://")) { | ||
| const filePath = pictureUrl.slice("file://".length); | ||
| return readFile(filePath); | ||
| } | ||
| if (pictureUrl.startsWith("/") || pictureUrl.startsWith("./") || pictureUrl.startsWith("../")) { | ||
| return readFile(pictureUrl); | ||
| } | ||
| // HTTP/HTTPS URL | ||
| const response = await fetch(pictureUrl); | ||
| if (!response.ok) { | ||
| throw new Error(`Failed to fetch picture: HTTP ${response.status} ${response.statusText}`); | ||
| } | ||
| const arrayBuffer = await response.arrayBuffer(); | ||
| return Buffer.from(arrayBuffer); | ||
| } |
|
Thanks for the contribution. I reviewed the branch, and this PR is not a good landing base for OpenClaw. Close this PR as a net-negative landing candidate: the useful WhatsApp group-management idea is real, but this branch duplicates implementations, crosses private plugin boundaries, bypasses existing guarded media/send paths, lacks proof, and would need to be replaced rather than repaired in place. So I’m closing this PR rather than keeping an unmergeable branch open. A new narrow PR that carries only the useful part is welcome. Review detailsBest possible solution: Keep the feature discussion in the canonical WhatsApp group-management issue and invite a new narrow PR that implements one WhatsApp-owned, explicit-opt-in, policy-guarded tool surface with tests, docs, and redacted live proof. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature PR. Source inspection is enough to show current main lacks this capability and that the proposed branch introduces merge blockers rather than fixing a reproduced bug. Is this the best way to solve the issue? No. This is not the best way to solve the issue because the branch duplicates the implementation, uses private registry/socket internals, and bypasses existing guarded media and send paths; a single opt-in WhatsApp-owned implementation is the safer direction. Security review: Security review needs attention: The diff introduces concrete security-boundary concerns around model-controlled local file reads, raw network fetches, raw WhatsApp socket access, and linked-account group administration.
AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 66079161d72a. |
Bypasses the session system to send messages directly via the Baileys socket. Critical for migration openers — avoids session context issues that caused messages to route to webchat instead of WhatsApp.
|
ClawSweeper applied the proposed close for this PR.
|
Summary
What problem does this PR solve?
Why does this matter now?
What is the intended outcome?
What is intentionally out of scope?
What does success look like?
What should reviewers focus on?
Summary guidance
This PR description is the contributor's durable explanation of the change. Write it for human maintainers first; ClawSweeper and Barnacle use the same text to understand intent, proof, risk, and current review state.
Describe the intent and outcome in 2-5 bullets. Avoid restating the diff; reviewers and bots can read the changed files.
If this PR fixes a plugin beta-release blocker, title it
fix(<plugin-id>): beta blocker - <summary>and link the matchingBeta blocker: <plugin-name> - <summary>issue labeledbeta-blocker. Contributors cannot label PRs, so the title is the PR-side signal for maintainers and automation.Linked context
Which issue does this close?
Closes #
Which issues, PRs, or discussions are related?
Related #
Was this requested by a maintainer or owner?
Linked context guidance
Link the issue, PR, discussion, maintainer request, or owner request that explains why this PR should exist. Maintainer context helps reviewers and automation distinguish intended work from drive-by churn.
Real behavior proof (required for external PRs)
Real behavior proof guidance
External contributors must show after-fix evidence from a real OpenClaw setup. Unit tests, mocks, lint, typechecks, snapshots, and CI are supplemental only.
Screenshots are encouraged even for CLI, console, text, or log changes. Terminal screenshots, copied live output, redacted runtime logs, recordings, and linked artifacts count.
If your environment cannot produce the ideal proof, explain that under
Proof limitations or environment constraintsso reviewers and ClawSweeper can direct the next step properly.Be mindful of private information like IP addresses, API keys, phone numbers, non-public endpoints, or other private details when providing evidence.
Tests and validation
Which commands did you run?
What regression coverage was added or updated?
What failed before this fix, if known?
If no test was added, why not?
Testing guidance
List focused commands, not every incidental check. CI is useful support, but external PRs still need real behavior proof above when behavior changes.
Risk checklist
Did user-visible behavior change? (
Yes/No)Did config, environment, or migration behavior change? (
Yes/No)Did security, auth, secrets, network, or tool execution behavior change? (
Yes/No)What is the highest-risk area?
How is that risk mitigated?
Risk guidance
Use this for author judgment that is not obvious from the diff. ClawSweeper can see touched files, but it cannot know which behavior you think is risky, why the risk is acceptable, or what mitigation reviewers should verify.
Current review state
What is the next action?
What is still waiting on author, maintainer, CI, or external proof?
Which bot or reviewer comments were addressed?
Review state guidance
Keep this as the durable state for review progress. If useful information appears in comments, fold the current next action or blocker back here so maintainers and ClawSweeper do not need to reconstruct state from comment history.