Skip to content

fix(discord): properly route slash event handling in threads - #2460

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-5d6932ba
Mar 22, 2026
Merged

fix(discord): properly route slash event handling in threads#2460
teknium1 merged 1 commit into
mainfrom
hermes/hermes-5d6932ba

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Cherry-picked from PR #2017 by @simpolism. Fixes #2011.

Discord slash commands in threads were missing thread_id in the SessionSource, routing to the parent channel session. /usage returned wrong data, /reset affected the wrong session.

Detects discord.Thread in _build_slash_event and sets chat_type='thread' with thread_id. Two tests added. 17 discord slash tests passing.

Cherry-picked from PR #2017 by @simpolism. Fixes #2011.

Discord slash commands in threads were missing thread_id in the
SessionSource, causing them to route to the parent channel session.
Commands like /usage and /reset returned wrong data or affected the
wrong session.

Detects discord.Thread channels in _build_slash_event and sets
chat_type='thread' with thread_id. Two tests added.
@teknium1
teknium1 merged commit 0e64a48 into main Mar 22, 2026
1 check failed
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
…5d6932ba

fix(discord): properly route slash event handling in threads
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
…5d6932ba

fix(discord): properly route slash event handling in threads
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
…5d6932ba

fix(discord): properly route slash event handling in threads
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
…5d6932ba

fix(discord): properly route slash event handling in threads
melon-xf added a commit to melon-xf/hermes-agent that referenced this pull request Sep 3, 2026
…5d6932ba

fix(discord): properly route slash event handling in threads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Discord native slash commands broken inside threads

1 participant