Skip to content

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

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

fix(gateway/slack): send tool call progress messages to correct Slack thread#3063
teknium1 merged 1 commit intomainfrom
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
StreamOfRon pushed a commit to StreamOfRon/hermes-agent that referenced this pull request Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants