Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(slack): keep empty dm mention onboarding

cyh381df8d9ba71
diff --git a/modules/im/slack.py b/modules/im/slack.py
index 2203e3e34..7437ead5a 100644
--- a/modules/im/slack.py
+++ b/modules/im/slack.py
@@ -1416,6 +1416,8 @@ class SlackBot(BaseIMClient):
if is_dm:
route_text = cleaned_text
had_dm_mention_only = not route_text
+ if had_dm_mention_only:
+ agent_text = ""
elif await self._is_slack_connect_channel(channel_id):
route_text = self._strip_specific_mention(raw_text, bot_user_id, anywhere=True)
handled_bot_mention_in_message_event = True
diff --git a/tests/test_slack_dm_mentions.py b/tests/test_slack_dm_mentions.py
index 60e944d62..b16aa812f 100644
--- a/tests/test_slack_dm_mentions.py
+++ b/tests/test_slack_dm_mentions.py
@@ -333,7 +333,7 @@ class SlackDmMentionTests(unittest.IsolatedAsyncioTestCase):
self.assertEqual(user_info["real_name"], "Alex")
self.assertEqual(user_info["name"], "cyh")
- async def test_dm_mention_only_preserves_raw_text_for_agent(self):
+ async def test_dm_mention_only_falls_through_as_empty_message(self):
slack = SlackBot(SlackConfig(bot_token="xoxb-test"))
received = {}
@@ -364,7 +364,7 @@ class SlackDmMentionTests(unittest.IsolatedAsyncioTestCase):
{
"channel_id": "D123",
"thread_id": "1710000000.000100",
- "text": "<@U_BOT>",
+ "text": "",
},
)