feat: 添加工作空间索引状态接口,增强 CodexLens 状态检查功能,支持前端显示索引信息

This commit is contained in:
catlog22
2026-01-07 11:36:06 +08:00
parent 1bd3d9c9bf
commit 6aa79c6dc9
5 changed files with 300 additions and 7 deletions

View File

@@ -903,7 +903,7 @@ def status(
schema_version = store._get_schema_version(conn)
# Check if dual FTS tables exist
cursor = conn.execute(
"SELECT name FROM sqlite_master WHERE type='table' AND name IN ('search_fts_exact', 'search_fts_fuzzy')"
"SELECT name FROM sqlite_master WHERE type='table' AND name IN ('files_fts_exact', 'files_fts_fuzzy')"
)
fts_tables = [row[0] for row in cursor.fetchall()]
has_dual_fts = len(fts_tables) == 2