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.

feat: trigger /start when user @mentions bot with empty message

cyhhao76657570dfab
diff --git a/core/handlers/message_handler.py b/core/handlers/message_handler.py
index 66e6b34fe..a7a33de37 100644
--- a/core/handlers/message_handler.py
+++ b/core/handlers/message_handler.py
@@ -47,6 +47,12 @@ class MessageHandler:
async def handle_user_message(self, context: MessageContext, message: str):
"""Process regular user messages and route to configured agent"""
try:
+ # If message is empty (e.g., user just @mentioned bot without text),
+ # trigger the /start command instead of sending empty message to agent
+ if not message or not message.strip():
+ await self.controller.command_handler.handle_start(context, "")
+ return
+
# Skip automatic cleanup; receiver tasks are retained until shutdown
# Allow "stop" shortcut inside Slack threads