Skip to content

fix(gateway/slack): send tool call progress messages to correct Slack thread - #3063

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-c75e42c8
Mar 25, 2026
Merged

fix(gateway/slack): send tool call progress messages to correct Slack thread#3063
teknium1 merged 1 commit into
mainfrom
hermes/hermes-c75e42c8

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Salvage of PR #2956 by @jneeee — cherry-picked onto current main with authorship preserved.

Slack DM progress messages (tool call updates like ⚙️ read_file: ...) were going to the DM root instead of the reply thread. The final response correctly threaded under the user's message via reply_to, but progress messages had no thread anchor because source.thread_id is None for top-level DMs.

Fix

Pass event.message_id through to _run_agent() and use source.thread_id or event_message_id as the thread anchor. Applied consistently to all three metadata sites: progress messages, status callbacks, and stream consumer.

Tests

64 Slack tests pass (including 2 new ones for DM top-level and channel @mention thread behavior).

Closes #2956

@teknium1
teknium1 merged commit e0cfc08 into main Mar 25, 2026
2 checks passed
outsourc-e pushed a commit to outsourc-e/hermes-agent that referenced this pull request Mar 26, 2026
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 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.

2 participants