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(notify): strip scoped-key prefix before send_dm to admins

cyhhaoa3f0136311c0
diff --git a/core/update_checker.py b/core/update_checker.py
index 0b2401eb1..0a9811d3f 100644
--- a/core/update_checker.py
+++ b/core/update_checker.py
@@ -292,14 +292,17 @@ class UpdateChecker:
def _get_admin_user_ids(self) -> list:
"""Get admin user IDs from the settings store.
- Returns a list of admin user IDs, or empty list if none configured.
+ Returns a list of raw platform user IDs (without scoped prefix)
+ for admins on the current platform, or empty list if none configured.
"""
try:
if hasattr(self.controller, "settings_manager"):
store = self.controller.settings_manager.get_store()
- if store and hasattr(store, "get_admins"):
- admins = store.get_admins()
- return list(admins.keys())
+ if store:
+ platform = getattr(self.controller.config, "platform", "slack")
+ # get_users_for_platform() returns raw IDs (e.g. "U0E0FM3QT")
+ # unlike get_admins() which returns scoped keys (e.g. "slack::U0E0FM3QT").
+ return [uid for uid, user in store.get_users_for_platform(platform).items() if user.is_admin]
except Exception as e:
logger.warning(f"Failed to get admin user IDs: {e}")
return []