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(platforms): preserve platform in restore flows
cyhhaofa0846977a27
diff --git a/core/handlers/base.py b/core/handlers/base.pyindex 3a650e4a7..156922484 100644--- a/core/handlers/base.py+++ b/core/handlers/base.py@@ -25,13 +25,19 @@ class BaseHandler:def _get_im_client(self, context: MessageContext):getter = getattr(self.controller, "get_im_client_for_context", None)if callable(getter):- return getter(context)+ try:+ return getter(context)+ except AttributeError:+ passreturn self.im_clientdef _get_settings_manager(self, context: MessageContext):getter = getattr(self.controller, "get_settings_manager_for_context", None)if callable(getter):- return getter(context)+ try:+ return getter(context)+ except AttributeError:+ passreturn self.settings_managerdef _get_formatter(self, context: MessageContext):diff --git a/core/handlers/session_handler.py b/core/handlers/session_handler.pyindex f41ed5e79..80408b445 100644--- a/core/handlers/session_handler.py+++ b/core/handlers/session_handler.py@@ -32,11 +32,14 @@ class SessionHandler(BaseHandler):is_dm = bool((context.platform_specific or {}).get("is_dm", False))if is_dm:use_dm_threads = False- im_client = getattr(- self.controller,- "get_im_client_for_context",- lambda _context: getattr(self.controller, "im_client", None),- )(context)+ getter = getattr(self.controller, "get_im_client_for_context", None)+ if callable(getter):+ try:+ im_client = getter(context)+ except AttributeError:+ im_client = getattr(self.controller, "im_client", None)+ else:+ im_client = getattr(self.controller, "im_client", None)if im_client and hasattr(im_client, "should_use_thread_for_dm_session"):use_dm_threads = bool(im_client.should_use_thread_for_dm_session())diff --git a/core/update_checker.py b/core/update_checker.pyindex 6a07a3249..6b8a6408a 100644--- a/core/update_checker.py+++ b/core/update_checker.py@@ -736,7 +736,8 @@ class UpdateChecker:if admin_ids:for uid in admin_ids:try:- await im_client.send_dm(uid, success_text)+ admin_client, raw_user_id, _ = self._get_im_client_for_user(uid)+ await admin_client.send_dm(raw_user_id, success_text)logger.info(f"Sent post-update notification to admin {uid}")except Exception as e:logger.error(f"Failed to send post-update notification to admin {uid}: {e}")diff --git a/modules/agents/opencode/question_handler.py b/modules/agents/opencode/question_handler.pyindex ebdba386f..fc8ef4ae5 100644--- a/modules/agents/opencode/question_handler.py+++ b/modules/agents/opencode/question_handler.py@@ -37,7 +37,10 @@ class OpenCodeQuestionHandler:self._answer_reactions: Dict[str, tuple] = {}def _platform_supports_question_tool(self, request: AgentRequest) -> bool:- return getattr(self._controller.config, "platform", "") != "wechat"+ platform = request.context.platform or (request.context.platform_specific or {}).get("platform")+ if not platform:+ platform = getattr(self._controller.config, "platform", "")+ return platform != "wechat"def _question_tool_disabled_text(self) -> str:translator = getattr(self._controller, "_t", None)