Skip to content

[Bug]: Discord auto-generated message.txt attachments from pasted code/long lines are silently ignored #12511

@maikokan

Description

@maikokan

Bug Description

When a I pastes a large block of code or long lines of text into a Discord message, Discord automatically converts it to a message.txt attachment. When Hermes receives the Discord message event, the attachment content is not processed. But the messages in the message input field is read.

Steps to Reproduce

  1. Open any Discord channel where the Hermes is
  2. Copy a large block of text or code
  3. Paste it directly into the Discord message input field
  4. Send the message

Expected Behavior

Hermes should:

  • Detect the message.txt attachment in the Discord message event
  • Read and extract the attachment content
  • Process the content as if it were an inline message
  • Respond to the user's pasted content

Actual Behavior

  • Discord uploads the pasted text as a message.txt attachment
  • The Hermes receives the message event but does not retrieve or process the attachment content
  • The message is silently ignored
  • No error is displayed to the user in Discord

Affected Component

Gateway (Telegram/Discord/Slack/WhatsApp)

Messaging Platform (if gateway-related)

Discord

Debug Report

Private

Operating System

Ubuntu 24.04.4 LTS

Python Version

3.11.15

Hermes Version

0.10.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions