Skip to content

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

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

fix(discord): properly route slash event handling in threads#2460
teknium1 merged 1 commit intomainfrom
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant