From ac586797ce0cb36240a92489742db8ff0fff34ec Mon Sep 17 00:00:00 2001 From: mika kuns Date: Fri, 7 Aug 2026 10:11:52 +0200 Subject: [PATCH] Revert "fix(data): give both processes a SQLite busy timeout" This reverts commit f62dbb9239c672ef7b43bb8a42e453e2da38442c. --- src/ClaudeDo.App/Program.cs | 5 +---- src/ClaudeDo.Worker/Program.cs | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ClaudeDo.App/Program.cs b/src/ClaudeDo.App/Program.cs index fffebcdc..cb3e95aa 100644 --- a/src/ClaudeDo.App/Program.cs +++ b/src/ClaudeDo.App/Program.cs @@ -91,11 +91,8 @@ sealed class Program TrExtension.Localizer = localizer; ClaudeDo.Ui.Localization.Loc.Current = localizer; sc.AddSingleton(localizer); - // Default Timeout maps to SQLite's busy handler. Without it a momentarily locked - // database throws SqliteException immediately instead of waiting out the writer, - // which is what leaves task rows stuck on a stale status. sc.AddDbContextFactory(opt => - opt.UseSqlite($"Data Source={dbPath};Default Timeout=30")); + opt.UseSqlite($"Data Source={dbPath}")); sc.AddScoped(sp => sp.GetRequiredService>().CreateDbContext()); diff --git a/src/ClaudeDo.Worker/Program.cs b/src/ClaudeDo.Worker/Program.cs index aa2f06fd..c4fd4ed1 100644 --- a/src/ClaudeDo.Worker/Program.cs +++ b/src/ClaudeDo.Worker/Program.cs @@ -57,9 +57,8 @@ builder.Host.UseSerilog((ctx, lc) => lc .WriteTo.Sink(broadcastSink)); builder.Services.AddSingleton(logBuffer); -// See ClaudeDo.App/Program.cs — Default Timeout maps to SQLite's busy handler. builder.Services.AddDbContextFactory(opt => - opt.UseSqlite($"Data Source={cfg.DbPath};Default Timeout=30")); + opt.UseSqlite($"Data Source={cfg.DbPath}")); builder.Services.AddSingleton(cfg); builder.Services.AddSingleton();