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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
fix(telegram): gate each callback dispatch path
cyh74244f8a4637
diff --git a/modules/im/telegram.py b/modules/im/telegram.pyindex f813c31df..b27c455b4 100644--- a/modules/im/telegram.py+++ b/modules/im/telegram.py@@ -339,27 +339,42 @@ class TelegramBot(BaseIMClient):}callback_data = str(payload.get("data", ""))primary_action = self._resolve_callback_action(callback_data)-- # Centralized auth gate for every Telegram button click before any dispatch.- auth_result = self.check_authorization(- user_id=context.user_id,- channel_id=context.channel_id,- is_dm=bool(context.platform_specific.get("is_dm")),- action=primary_action,- settings_manager=self.settings_manager,- )- if not auth_result.allowed:- denial_text = self.build_auth_denial_text(auth_result.denial, context.channel_id)- await self.answer_callback(- callback_id,- denial_text,- show_alert=bool(denial_text),+ is_internal_callback = callback_data.startswith(("tg_cwd:", "tg_resume:", "tg_route:", "tg_question:"))+ if is_internal_callback:+ auth_result = self.check_authorization(+ user_id=context.user_id,+ channel_id=context.channel_id,+ is_dm=bool(context.platform_specific.get("is_dm")),+ action=primary_action,+ settings_manager=self.settings_manager,)- return- if await self._handle_internal_callback(context, callback_data):- await self.answer_callback(callback_id)- return+ if not auth_result.allowed:+ denial_text = self.build_auth_denial_text(auth_result.denial, context.channel_id)+ await self.answer_callback(+ callback_id,+ denial_text,+ show_alert=bool(denial_text),+ )+ return+ if await self._handle_internal_callback(context, callback_data):+ await self.answer_callback(callback_id)+ returnif self.on_callback_query_callback:+ auth_result = self.check_authorization(+ user_id=context.user_id,+ channel_id=context.channel_id,+ is_dm=bool(context.platform_specific.get("is_dm")),+ action=primary_action,+ settings_manager=self.settings_manager,+ )+ if not auth_result.allowed:+ denial_text = self.build_auth_denial_text(auth_result.denial, context.channel_id)+ await self.answer_callback(+ callback_id,+ denial_text,+ show_alert=bool(denial_text),+ )+ returnawait self.on_callback_query_callback(context, callback_data)await self.answer_callback(callback_id)