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(remote): keep IM settings local
Maxfbb9d707f80b
diff --git a/tests/test_instance_authorization.py b/tests/test_instance_authorization.pyindex 0efa7f1ee..33011b0a7 100644--- a/tests/test_instance_authorization.py+++ b/tests/test_instance_authorization.py@@ -186,6 +186,8 @@ def test_remote_http_policy_defaults_local_machine_and_unknown_routes_to_local_o("POST", "/api/config", REMOTE_HTTP_PAYLOAD_FILTERED),("PATCH", "/api/projects/proj-1", REMOTE_HTTP_PAYLOAD_FILTERED),("PATCH", "/api/sessions/ses-1", REMOTE_HTTP_PAYLOAD_FILTERED),+ ("GET", "/api/settings", REMOTE_HTTP_LOCAL_ONLY),+ ("HEAD", "/api/settings", REMOTE_HTTP_LOCAL_ONLY),("POST", "/api/settings", REMOTE_HTTP_LOCAL_ONLY),("POST", "/api/settings/thread", REMOTE_HTTP_LOCAL_ONLY),("DELETE", "/api/settings/thread", REMOTE_HTTP_LOCAL_ONLY),diff --git a/tests/test_ui_remote_access_auth.py b/tests/test_ui_remote_access_auth.pyindex c4cbef2d8..a3f1b804c 100644--- a/tests/test_ui_remote_access_auth.py+++ b/tests/test_ui_remote_access_auth.py@@ -1136,6 +1136,33 @@ def test_remote_im_settings_are_rejected_before_store_access(monkeypatch, tmp_paassert response.get_json()["code"] == "remote_execution_disabled"+def test_remote_im_settings_read_is_rejected_before_store_access(monkeypatch, tmp_path):+ monkeypatch.setenv("AVIBE_HOME", str(tmp_path))+ config = _save_config(tmp_path)+ client = app.test_client()+ client.set_cookie(+ remote_access.SESSION_COOKIE_NAME,+ remote_session_cookie(config, "[email protected]", "user-owner"),+ domain="alex.avibe.bot",+ )+ monkeypatch.setattr(+ api,+ "get_settings",+ lambda *args, **kwargs: (_ for _ in ()).throw(+ AssertionError("remote IM settings read reached the local settings store")+ ),+ )++ response = client.get(+ "/api/settings?platform=slack",+ base_url="https://alex.avibe.bot",+ environ_base=_remote_peer(),+ )++ assert response.status_code == 403+ assert response.get_json()["code"] == "remote_execution_disabled"++def test_remote_thread_scope_settings_are_blocked_before_store_access(monkeypatch, tmp_path):monkeypatch.setenv("AVIBE_HOME", str(tmp_path))config = _save_config(tmp_path)diff --git a/vibe/authorization.py b/vibe/authorization.pyindex 2f7d5dd16..678a06069 100644--- a/vibe/authorization.py+++ b/vibe/authorization.py@@ -351,6 +351,8 @@ _REMOTE_LOCAL_ONLY_HTTP_RULES = tuple(),("POST", r"^/api/asr/transcribe$"),("POST", r"^/api/show/sessions/[^/]+/(?:events|prewarm)$"),+ ("GET", r"^/api/settings$"),+ ("HEAD", r"^/api/settings$"),("POST", r"^/api/settings$"),("POST", r"^/api/settings/thread$"),("DELETE", r"^/api/settings/thread$"),@@ -379,7 +381,7 @@ _REMOTE_OWNER_ALLOWED_HTTP_RULES = tuple((frozenset({"GET", "HEAD", "POST"}), r"^/api/agent-onboarding$"),(frozenset({"GET", "HEAD"}),- r"^/api/(?:agents/[^/]+|settings)$",+ r"^/api/agents/[^/]+$",),(frozenset({"GET", "HEAD"}),