From 2d8cd2392d7131cf0b9bb00d959ee99b766c679b Mon Sep 17 00:00:00 2001 From: Andy Pai Date: Mon, 6 Apr 2026 22:46:37 -0400 Subject: [PATCH] fix: ignore database runtime artifacts by default --- src/config/config-store.test.ts | 13 +++++++++++++ src/config/config-store.ts | 11 +++++++++++ 2 files changed, 24 insertions(+) diff --git a/src/config/config-store.test.ts b/src/config/config-store.test.ts index ac66eea..43a6687 100644 --- a/src/config/config-store.test.ts +++ b/src/config/config-store.test.ts @@ -63,6 +63,19 @@ describe('ConfigStore AI env overrides', () => { }) }) +describe('ConfigStore default ignore list', () => { + it('includes database runtime artifact patterns', () => { + const cfg = defaultConfig() + + expect(cfg.watch.ignore).toContain('**/*.db') + expect(cfg.watch.ignore).toContain('**/*.db-wal') + expect(cfg.watch.ignore).toContain('**/*.db-shm') + expect(cfg.watch.ignore).toContain('**/*.sqlite') + expect(cfg.watch.ignore).toContain('**/*.sqlite-wal') + expect(cfg.watch.ignore).toContain('**/*.sqlite-shm') + }) +}) + describe('ConfigStore server config', () => { it('provides default server config values', async () => { const cfg = await loadWithEnv({}) diff --git a/src/config/config-store.ts b/src/config/config-store.ts index c55891a..7d495ab 100644 --- a/src/config/config-store.ts +++ b/src/config/config-store.ts @@ -116,6 +116,17 @@ const DEFAULT_IGNORE = [ '**/.nyc_output/**', '**/*.lcov', + // ─── Database & Runtime Artifacts ─── + '**/*.db', + '**/*.db-wal', + '**/*.db-shm', + '**/*.sqlite', + '**/*.sqlite-wal', + '**/*.sqlite-shm', + '**/*.sqlite3', + '**/*.sqlite3-wal', + '**/*.sqlite3-shm', + // ─── macOS ─── '**/.DS_Store', '**/.com.google.Chrome.*',