Repository navigation
fix(outbound): route media payloads through handler.sendPayload in agent --deliver - #78635
chinar-amrutkar wants to merge 1 commit into
Conversation
…ent --deliver When a payload has mediaUrl/mediaUrls but no presentation, interactive, or channelData, the handler.sendPayload path was skipped. Media payloads now correctly trigger handler.sendPayload, which the Telegram adapter uses to send media via sendPayloadMediaSequenceOrFallback. Fixes openclaw#77265
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open: this is a plausible candidate for the linked media-only Telegram Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes at source level: the linked issue provides a concrete Telegram Is this the best way to solve the issue? No: the PR changes the likely shared routing area, but the predicate is broader than the reported media-only case and can alter existing multi-media semantics. A narrowed branch or explicit maintainer approval for the broader contract is safer. Security review: Security review cleared: The diff only changes an outbound routing predicate and adds no dependency, workflow, script, credential, permission, or code-execution surface. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 010b61746379. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
@chinar-amrutkar thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward. Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive. Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it. |
|
Closing per ClawSweeper review verdict |
Fix Summary
Issue: #77265 -
agent --deliverreturnsmediaUrlpayload but doesn't send Telegram mediaRoot Cause: In
src/infra/outbound/deliver.ts, the condition for callinghandler.sendPayloadchecks forisError,presentation,interactive,channelData, andaudioAsVoice, but did not check formediaUrlormediaUrls. When a payload has only media (no presentation/interactive/channelData), thehandler.sendPayloadpath was skipped.Fix: Added media URL check to the
handler.sendPayloadcondition so that payloads with media are correctly routed throughhandler.sendPayload, which the Telegram adapter uses to send media viasendPayloadMediaSequenceOrFallback.Files Changed
src/infra/outbound/deliver.ts— 2 linesTest Plan
openclaw agent --deliverwith media URL now sends Telegram mediaCloses #77265