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): allow thread replies without mention when SLACK_REQUIRE_MENTION=true

yh c64e7406517e2
diff --git a/modules/im/slack.py b/modules/im/slack.py
index e2f63d9b5..593565a1b 100644
--- a/modules/im/slack.py
+++ b/modules/im/slack.py
@@ -338,8 +338,10 @@ class SlackBot(BaseIMClient):
await self._send_unauthorized_message(channel_id)
return
- # Check if we require mention in channels (not DMs)
- if self.config.require_mention and not channel_id.startswith("D"):
+ # Check if we require mention in channels (not DMs or threads)
+ # In threads, we don't require mention even if SLACK_REQUIRE_MENTION is true
+ is_thread_reply = event.get("thread_ts") is not None
+ if self.config.require_mention and not channel_id.startswith("D") and not is_thread_reply:
logger.info(f"Ignoring non-mention message in channel: '{text}'")
return