fix(hooks): pass mediaUrl/mediaUrls to plugin message_received event metadata#87297
Conversation
This comment was marked as spam.
This comment was marked as spam.
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs real behavior proof before merge. Reviewed May 27, 2026, 6:28 PM ET / 22:28 UTC. Summary PR surface: Source +6, Tests +4. Total +10 across 2 files. Reproducibility: yes. from source inspection: current main derives the media fields and forwards them through Review metrics: 1 noteworthy metric.
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 Security Review detailsBest possible solution: Land one narrow mapper fix after redacted real WhatsApp/plugin proof shows Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main derives the media fields and forwards them through Is this the best way to solve the issue? Yes for the code direction: forwarding the already-canonical fields through the existing mapper is the narrow maintainable fix. The merge path still needs real behavior proof and maintainer acceptance of the additive plugin hook payload. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 5cef288d6511. Label changesLabel justifications:
Evidence reviewedPR surface: Source +6, Tests +4. Total +10 across 2 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
|
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
Maintainer verification for 394712c: Behavior addressed: plugin message_received hooks now receive the canonical inbound media metadata already available to inbound_claim: mediaPath, mediaUrl, mediaType, mediaPaths, mediaUrls, and mediaTypes. Real environment tested: local OpenClaw source checkout on macOS; mapper-level behavior verified with the repo Vitest wrapper. Maintainer proof override applied because this is a small pure hook-mapper contract change and no channel/provider runtime setup is needed to exercise provider delivery. Exact steps or command run after this patch: Evidence after fix: focused Vitest passed: 1 test file, 12 tests. Autoreview reported no accepted/actionable findings. Observed result after fix: the received hook metadata assertions cover singular and plural media path/url/type fields. What was not tested: full live channel delivery with a real external media upload; this patch only forwards fields that are already present in the canonical inbound context. |
Forward canonical inbound media metadata to plugin message_received hooks so plugins can inspect the same mediaPath, mediaUrl, mediaType, mediaPaths, mediaUrls, and mediaTypes fields already available to inbound_claim. Verification: - node scripts/run-vitest.mjs src/hooks/message-hook-mappers.test.ts - /Users/steipete/Projects/agent-scripts/skills/autoreview/scripts/autoreview --mode branch --base origin/main Refs: openclaw#87297 Co-authored-by: WarrenJones <[email protected]>
Forward canonical inbound media metadata to plugin message_received hooks so plugins can inspect the same mediaPath, mediaUrl, mediaType, mediaPaths, mediaUrls, and mediaTypes fields already available to inbound_claim. Verification: - node scripts/run-vitest.mjs src/hooks/message-hook-mappers.test.ts - /Users/steipete/Projects/agent-scripts/skills/autoreview/scripts/autoreview --mode branch --base origin/main Refs: openclaw#87297 Co-authored-by: WarrenJones <[email protected]>
Forward canonical inbound media metadata to plugin message_received hooks so plugins can inspect the same mediaPath, mediaUrl, mediaType, mediaPaths, mediaUrls, and mediaTypes fields already available to inbound_claim. Verification: - node scripts/run-vitest.mjs src/hooks/message-hook-mappers.test.ts - /Users/steipete/Projects/agent-scripts/skills/autoreview/scripts/autoreview --mode branch --base origin/main Refs: openclaw#87297 Co-authored-by: WarrenJones <[email protected]>
Summary
Test plan