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(sessions): bind legacy default session rows
cyh34da72f11d96
diff --git a/storage/sessions_service.py b/storage/sessions_service.pyindex 4f9b22698..1460bf8d1 100644--- a/storage/sessions_service.py+++ b/storage/sessions_service.py@@ -1102,7 +1102,7 @@ def _find_agent_session_row_id(if row_id:return row_idlegacy_row_id = conn.execute(- base_query.where(agent_sessions.c.agent_backend == "")+ base_query.where(agent_sessions.c.agent_backend.in_(["", "default"])).where(agent_sessions.c.agent_variant.in_(["", "default"])).order_by(agent_sessions.c.last_active_at.desc(), agent_sessions.c.id.desc()).limit(1)diff --git a/tests/test_sqlite_sessions_store.py b/tests/test_sqlite_sessions_store.pyindex e4c32b794..63a8d9402 100644--- a/tests/test_sqlite_sessions_store.py+++ b/tests/test_sqlite_sessions_store.py@@ -3,6 +3,7 @@ from __future__ import annotationsimport jsonfrom pathlib import Path+import pytestfrom sqlalchemy import selectfrom config import paths@@ -258,7 +259,8 @@ def test_sqlite_sessions_service_reserves_then_binds_agent_session_id(tmp_path:service.close()-def test_bind_agent_session_upgrades_legacy_default_anchor_row(tmp_path: Path) -> None:[email protected]("legacy_backend", ["", "default"])+def test_bind_agent_session_upgrades_legacy_default_anchor_row(tmp_path: Path, legacy_backend: str) -> None:db_path = tmp_path / "vibe.sqlite"service = SQLiteSessionsService(db_path)try:@@ -289,7 +291,7 @@ def test_bind_agent_session_upgrades_legacy_default_anchor_row(tmp_path: Path) -conn,scope_id=scope_id,session_anchor="slack_171717.123",- agent_backend="",+ agent_backend=legacy_backend,agent_variant="default",workdir=str(tmp_path / "repo"),native_session_id="",