hermes - 💡(How to fix) Fix Discord clicked slash-command suggestions are not normalized before dispatch

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Reproduction

  1. In Discord, use/click an application command suggestion such as /status.
  2. Discord delivers message content shaped like </status:123456789>.
  3. Hermes receives the message and does not normalize it to /status before command dispatch.
RAW_BUFFERClick to expand / collapse

Bug

Clicked Discord slash-command suggestions can arrive in message content as Discord application-command mentions such as </status:123456789> instead of literal /status text.

Hermes command detection currently expects a literal leading slash, so a clicked suggestion can fall through as an unknown/unrecognized command even though manually typing the same slash command works.

Reproduction

  1. In Discord, use/click an application command suggestion such as /status.
  2. Discord delivers message content shaped like </status:123456789>.
  3. Hermes receives the message and does not normalize it to /status before command dispatch.

Expected

Hermes should normalize Discord application-command mentions back to plain slash command text before command detection.

Examples:

  • </status:123456789> -> /status
  • @bot </status:123456789> -> /status after bot mention stripping

Proposed fix

Normalize application-command mention payloads before command detection, both before and after bot mention stripping, and add regression coverage for clicked Discord command suggestions with and without arguments.

Relevant files from the closed PR draft:

  • gateway/platforms/discord.py
  • tests/gateway/test_discord_slash_commands.py

Originally proposed as PR #29508, now converted to an issue to avoid maintaining a contributor fork.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING