-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
[Bug]: Image generation completion event cannot deliver attachments to Discord channel #84605
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.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.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem:
When
image_generatecompletes in a background session, the completion event fires and includes an attachment (the generated image). The event instructions say to deliver the attachment to the original chat via the message tool. However, the message tool call from within the completion event context fails — either silently or with an error — and the attachment never reaches the Discord channel.Reproduction:
image_generatecall from a Discord sessionmessage toolwithaction=sendto the Discord channel failsExpected behavior:
Completion events with attachments should auto-deliver to the original Discord channel, just like text responses do.
Environment:
Error observed:
The completion event fires successfully and the image file exists on disk at the reported path, but the message tool does not successfully deliver it to Discord from within the completion event sub-session context.
Workaround:
None that works cleanly — text responses route fine, but attachments require the message tool which fails from the event context.