The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(slack): bind triggering message to session source
successionbio8b8076dea9f5
diff --git a/plugins/platforms/slack/adapter.py b/plugins/platforms/slack/adapter.pyindex f316eb39017..d8e336a6560 100644--- a/plugins/platforms/slack/adapter.py+++ b/plugins/platforms/slack/adapter.py@@ -4360,6 +4360,7 @@ class SlackAdapter(BasePlatformAdapter):user_name=user_name,thread_id=thread_ts,scope_id=str(team_id) if team_id else None,+ message_id=ts,# Workflow/app posts have user=None; flag them so the SLACK_ALLOW_BOTS bypass can# authorize them. Same predicate as the drop gate (api_human_users stay human).is_bot=self._event_declares_bot_sender(event))diff --git a/tests/gateway/test_slack.py b/tests/gateway/test_slack.pyindex 158c20275af..e4d65c2db07 100644--- a/tests/gateway/test_slack.py+++ b/tests/gateway/test_slack.py@@ -3807,6 +3807,10 @@ class TestProgressMessageThread:"message_id must equal the event ts so _run_agent can use it as ""the fallback thread anchor for progress messages")+ assert source.message_id == "1234567890.000001", (+ "source.message_id must carry the authenticated triggering Slack ts "+ "into session-bound tools"+ )# Verify that the Slack send() method correctly threads a message# when metadata contains thread_id equal to the original ts