-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Discord message.send silently drops attachments while returning success/message id #53641
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.regressionBehavior that previously worked and now failsBehavior that previously worked and now failsstaleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.regressionBehavior that previously worked and now failsBehavior that previously worked and now failsstaleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Bug type
Regression (worked before, now fails)
Summary
Discord outbound sends through OpenClaw are returning success and a valid
messageId, but the attachment never uploads. The resulting Discord message has no attachments server-side.Steps to reproduce
Used an existing workspace image:
/home/REDACTED/.openclaw/workspace/images/generated/test-gemini-post-update.jpgTested with Discord
message.sendusing:filePathpathbufferExpected behavior
Using the Discord
message.sendpath with a local image or image buffer should create a Discord message with a populatedattachments[]array and a visible uploaded fileActual behavior
messageIdis returnedattachments: []OpenClaw version
2026.3.22, reproduced again after update to 2026.3.23-2
Operating system
Ubuntu
Install method
No response
Model
GPT 5.4
Provider / routing chain
openclaw -> GPT 5.4 via API
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
This does not appear to be:
It reproduces with a normal existing local image and ordinary Discord channel sends.
Current best hypothesis: the Discord send path is constructing the upload payload incorrectly for the Discord REST client.
Possibly:
filesis being embedded inside the JSON bodybodyThat would explain the current behavior:
Likely somewhere around:
sendDiscordMediabuildDiscordMessagePayloadserializePayloadrest.post(...)option shapeThere was an earlier hypothesis around
mediaLocalRootspropagation, but that does not explain the observed behavior here because the issue persists after updating to2026.3.23-2, and the file used for repro is workspace-rooted.