mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-22 16:35:20 +08:00
Add composite indexes on Workspace, status, and lease expiry for AgentRun and MonitoringMessage so lease maintenance can locate active executions without scanning completed history. Keep ORM metadata and Alembic migration 0039 consistent, including fresh installations where the indexes already exist. Cover migration round trips, data preservation, and SQLite query plans with regression tests.