Skip to content

feat(slack): add reply_in_thread config option#2726

Closed
amethystani wants to merge 1 commit into
NousResearch:mainfrom
amethystani:feat/slack-reply-in-thread
Closed

feat(slack): add reply_in_thread config option#2726
amethystani wants to merge 1 commit into
NousResearch:mainfrom
amethystani:feat/slack-reply-in-thread

Conversation

@amethystani

Copy link
Copy Markdown
Contributor

Summary

Hermes always threads replies to Slack channel messages. Teams that prefer direct channel replies had no way to opt out.

Changes

Add reply_in_thread to the Slack platform extra config (default true for full backward compatibility):

platforms:
  slack:
    extra:
      reply_in_thread: false

When false, _resolve_thread_ts() returns None for top-level channel messages → replies go directly to the channel. Messages already inside an existing thread are always replied in-thread to preserve conversation context.

Implementation

Minimal change to gateway/platforms/slack.py — 11 lines added to _resolve_thread_ts().

Closes #2662

By default, Hermes always threads replies to channel messages. Teams
that prefer direct channel replies had no way to opt out without
patching the source.

Add a reply_in_thread option (default: true) to the Slack platform
extra config:

  platforms:
    slack:
      extra:
        reply_in_thread: false

When false, _resolve_thread_ts() returns None for top-level channel
messages, so replies go directly to the channel. Messages already
inside an existing thread are still replied in-thread to preserve
conversation context. Default is true for full backward compatibility.
@teknium1

teknium1 commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Merged via PR #4643. Your implementation was cherry-picked onto current main with your authorship preserved in git log. Also added docs for the feature. Thanks for the contribution!

Also crediting @Mibayy who opened issue #2662 and submitted the first PR (#2664) for this feature.

@teknium1 teknium1 closed this Apr 2, 2026
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.

Add reply_in_thread config option for Slack platform

2 participants