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(state): stamp sqlite alembic revisions

cyh82913656b884
diff --git a/storage/alembic/env.py b/storage/alembic/env.py
index e6f23f855..6217bc65b 100644
--- a/storage/alembic/env.py
+++ b/storage/alembic/env.py
@@ -35,7 +35,7 @@ def run_migrations_online() -> None:
poolclass=pool.NullPool,
)
- with connectable.connect() as connection:
+ with connectable.begin() as connection:
connection.exec_driver_sql("PRAGMA journal_mode = WAL")
connection.exec_driver_sql("PRAGMA foreign_keys = ON")
connection.exec_driver_sql("PRAGMA busy_timeout = 5000")
diff --git a/tests/test_sqlite_state_migration.py b/tests/test_sqlite_state_migration.py
index 44297b19d..267da32a3 100644
--- a/tests/test_sqlite_state_migration.py
+++ b/tests/test_sqlite_state_migration.py
@@ -14,6 +14,7 @@ from storage.migrations import run_migrations
def test_run_migrations_creates_initial_schema(tmp_path: Path) -> None:
db_path = tmp_path / "vibe.sqlite"
+ run_migrations(db_path)
run_migrations(db_path)
with sqlite3.connect(db_path) as conn:
@@ -27,6 +28,8 @@ def test_run_migrations_creates_initial_schema(tmp_path: Path) -> None:
assert "channel_settings" in tables
assert "agent_session_bindings" in tables
assert "session_messages" in tables
+ version = conn.execute("select version_num from alembic_version").fetchone()
+ assert version == ("20260501_0001",)
def test_initial_migration_is_schema_snapshot() -> None: