Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
fix(switchdash): stop the search index treating item_type as content (CHOO-1423)
Christian McDermottc167f56fed3f
diff --git a/dash/apps/switchdash-desktop/src/main/db/initialize.ts b/dash/apps/switchdash-desktop/src/main/db/initialize.tsindex 75d6c9077..9db94b50b 100644--- a/dash/apps/switchdash-desktop/src/main/db/initialize.ts+++ b/dash/apps/switchdash-desktop/src/main/db/initialize.ts@@ -140,7 +140,7 @@ function runBundledMigrations(connection: BetterSqlite3.Database): void {function ensureSearchIndex(connection: BetterSqlite3.Database): void {// Bump this version string whenever the FTS schema changes — the table is// dropped and recreated, and backfill() + seedCommands() repopulate it.- const SEARCH_INDEX_VERSION = '4';+ const SEARCH_INDEX_VERSION = '5';const row = connection.prepare(`SELECT value FROM kv WHERE key = 'fts_version'`).get() as| { value: string }@@ -150,7 +150,10 @@ function ensureSearchIndex(connection: BetterSqlite3.Database): void {connection.exec(`DROP TABLE IF EXISTS search_index`);connection.exec(`CREATE VIRTUAL TABLE search_index USING fts5(- item_type,+ -- UNINDEXED: the type is a discriminator, not content. Indexed under a+ -- trigram tokenizer it made its own literal searchable, so "ses" matched+ -- every session and "com" every command through this column alone.+ item_type UNINDEXED,item_id UNINDEXED,location_id UNINDEXED,session_id UNINDEXED,