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
test(routes): repair test fallout from /api/* migration
cyh231ebcbd5adb
diff --git a/tests/test_im_base_auth.py b/tests/test_im_base_auth.pyindex f528342fc..b252abf27 100644--- a/tests/test_im_base_auth.py+++ b/tests/test_im_base_auth.py@@ -69,7 +69,7 @@ class _SettingsManager:def test_extract_command_action():- assert BaseIMClient.extract_command_action("/api/settings") == "settings"+ assert BaseIMClient.extract_command_action("/settings") == "settings"assert BaseIMClient.extract_command_action("/setcwd /tmp") == "set_cwd"assert BaseIMClient.extract_command_action("/set_cwd /tmp") == "set_cwd"assert BaseIMClient.extract_command_action("bind code") == ""@@ -79,7 +79,7 @@ def test_extract_command_action():def test_parse_text_command():- assert BaseIMClient.parse_text_command("/api/settings") == ("settings", "")+ assert BaseIMClient.parse_text_command("/settings") == ("settings", "")assert BaseIMClient.parse_text_command("/setcwd /tmp") == ("set_cwd", "/tmp")assert BaseIMClient.parse_text_command("/set_cwd /tmp") == ("set_cwd", "/tmp")assert BaseIMClient.parse_text_command("bind code") is Nonediff --git a/tests/test_ui_remote_access_auth.py b/tests/test_ui_remote_access_auth.pyindex 3783f90cc..94bc3220a 100644--- a/tests/test_ui_remote_access_auth.py+++ b/tests/test_ui_remote_access_auth.py@@ -1778,10 +1778,12 @@ def test_setup_host_with_reverse_proxy_header_is_not_local(monkeypatch, tmp_pathassert response.get_json()["error"] == "remote_access_host_mismatch"-def test_settings_get_redirects_browser_navigation_to_spa(monkeypatch, tmp_path):- """A browser bookmark / hard refresh of /settings sends Accept: text/html- and must be redirected to the SPA settings page rather than receiving the- JSON API payload, so the user lands in the UI as expected.+def test_settings_get_serves_json_even_for_browser_accept(monkeypatch, tmp_path):+ """After the /api/* migration the settings JSON API lives at /api/settings+ and no longer content-negotiates a redirect. Even a browser-style+ Accept: text/html request receives the JSON payload; SPA routing for the+ user-facing /settings URL is handled by the static catch-all instead, so+ the API path itself never collides with a UI route anymore."""monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))_save_config(tmp_path)@@ -1793,8 +1795,8 @@ def test_settings_get_redirects_browser_navigation_to_spa(monkeypatch, tmp_path)follow_redirects=False,)- assert response.status_code in (301, 302, 303, 307, 308)- assert response.headers["Location"].endswith("/settings/service")+ assert response.status_code == 200+ assert response.is_jsondef test_settings_get_returns_json_for_fetch_callers(monkeypatch, tmp_path):diff --git a/tests/test_ui_server_reload.py b/tests/test_ui_server_reload.pyindex ca3ed61d3..0e48a9ce6 100644--- a/tests/test_ui_server_reload.py+++ b/tests/test_ui_server_reload.py@@ -54,7 +54,10 @@ def test_ui_reload_overrides_bind_host_when_tunnel_enabled(monkeypatch):return original(config, requested_host=requested_host)monkeypatch.setattr(runtime, "effective_ui_bind_host", _spy)- monkeypatch.setattr(V2Config, "load", classmethod(lambda cls: _config_with_tunnel(enabled=True)))+ monkeypatch.setattr(+ "core.services.settings.load_config",+ lambda *a, **k: _config_with_tunnel(enabled=True),+ )monkeypatch.setattr(threading, "Thread", _NoopThread)client = app.test_client()@@ -79,7 +82,10 @@ def test_ui_reload_overrides_bind_host_when_tunnel_enabled(monkeypatch):def test_ui_reload_rejects_non_string_host(monkeypatch):- monkeypatch.setattr(V2Config, "load", classmethod(lambda cls: _config_with_tunnel(enabled=True)))+ monkeypatch.setattr(+ "core.services.settings.load_config",+ lambda *a, **k: _config_with_tunnel(enabled=True),+ )monkeypatch.setattr(threading, "Thread", _NoopThread)client = app.test_client()@@ -105,7 +111,10 @@ def test_ui_reload_uses_requested_host_when_tunnel_disabled(monkeypatch):return original(config, requested_host=requested_host)monkeypatch.setattr(runtime, "effective_ui_bind_host", _spy)- monkeypatch.setattr(V2Config, "load", classmethod(lambda cls: _config_with_tunnel(enabled=False)))+ monkeypatch.setattr(+ "core.services.settings.load_config",+ lambda *a, **k: _config_with_tunnel(enabled=False),+ )monkeypatch.setattr(threading, "Thread", _NoopThread)client = app.test_client()