Repository navigation
refactor(install): remove obsolete Baileys media hotfix - #129751
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 9:49 PM ET / August 26, 2026, 01:49 UTC. ClawSweeper reviewWhat this changesThe PR removes the Baileys media-stream and fetch-dispatcher mutation from bundled-plugin postinstall and deletes tests for that retired mutation. Merge readinessKeep open for maintainer validation: the deletion is structurally focused, but the unchanged lock still pins Baileys 7.0.0-rc14 and this checkout could not independently inspect that artifact to confirm both removed fixes remain upstream. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherOpenClaw’s postinstall script prepares bundled plugin packages after installation while preserving safe package ownership and cleanup rules. This change removes a historical mutation of the installed Baileys dependency from that lifecycle. flowchart LR
A[Package installation] --> B[Bundled plugin postinstall]
B --> C[Installed Baileys package]
C --> D[Historical runtime mutation]
D --> E[Plugin package layout]
E --> F[OpenClaw runtime]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -127, Other -285. Total -412 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Make the exact locked Baileys artifact independently inspectable or attach reproducible packaged-install evidence for both upstream fixes, then retain only the generic postinstall lifecycle. Do we have a high-confidence way to reproduce the issue? Not applicable: this is cleanup of a historical workaround, and the decisive check is inspection of the exact supported dependency artifact rather than a reported user failure. Is this the best way to solve the issue? Unclear. Deleting an inactive mutation is the cleanest outcome only if the locked Baileys artifact supplies both protections; that contract could not be independently read in this environment. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5af41d881e07. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
215f228 to
19d8a5e
Compare
|
Merged via squash.
|
Summary
Remove the obsolete bundled-plugin postinstall workaround for Baileys media stream completion and upload dispatcher selection. Direct inspection of the pristine pinned upstream sources confirms both the shipped stable release and the current dependency already implement both fixes, so the 285-line installer mutation is permanently inactive.
Preserve package ownership, source-checkout and packaged install paths, early disable controls, symlink and path-containment checks, traversal limits, legacy dependency cleanup, and bundled-plugin migration.
Validation
Four complete owner and sibling suites pass all 181 tests across the postinstall lifecycle, preinstall warning, plugin manifest contracts, and Docker package layout. Both pristine stable and current upstream dependency sources were independently inspected and share the same verified fixed implementation. Formatting, direct lint, two independent source audits, and fresh structured review are clean.