The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(slack): inbound messages no longer fail native admission with invalid_params
teknium12b12f2a7e645
diff --git a/plugins/platforms/slack/adapter.py b/plugins/platforms/slack/adapter.pyindex ea559066e06..e97eb21d069 100644--- a/plugins/platforms/slack/adapter.py+++ b/plugins/platforms/slack/adapter.py@@ -4729,10 +4729,7 @@ class SlackAdapter(BasePlatformAdapter):reply_expected=reply_expected,# thread_ts is the thread root, not an explicit reply (root is in channel_context).reply_to_text=None,- auto_skill=resolve_channel_skills(self.config.extra, channel_id, None),- metadata={- "slack_team_id": team_id, "slack_channel_id": channel_id,- "slack_thread_ts": thread_ts})+ auto_skill=resolve_channel_skills(self.config.extra, channel_id, None))def _note_attachment_failure(self, notices: List[str], detail: Optional[str], fallback_msg: str, *fallback_args: Any,diff --git a/tests/gateway/test_slack.py b/tests/gateway/test_slack.pyindex fe2c8ed13e4..f0f329ffe6d 100644--- a/tests/gateway/test_slack.py+++ b/tests/gateway/test_slack.py@@ -3124,7 +3124,8 @@ class TestAssistantThreadLifecycle:msg_event = assistant_adapter.handle_message.await_args.args[0]assert msg_event.source.scope_id == "T_OTHER"- assert msg_event.metadata["slack_team_id"] == "T_OTHER"+ # Native admission rejects adapter-set metadata (reserved for gateway routing keys).+ assert msg_event.metadata == {}assert msg_event.source.thread_id == "171.111"assert msg_event.text.startswith("[Slack app context: user is viewing channel C_ACTIVE]"@@ -3175,7 +3176,7 @@ class TestAssistantThreadLifecycle:title="Please summarize this incident thread",)msg_event = assistant_adapter.handle_message.call_args[0][0]- assert msg_event.metadata["slack_team_id"] == "T_TEAM"+ assert msg_event.source.scope_id == "T_TEAM"# ---------------------------------------------------------------------------