beads/internal
Danno 76e01b270d
fix: auto-clean stale Dolt noms LOCK files on bd startup (#2059)
When a Dolt server process is killed uncleanly (SIGKILL, OOM, tmux
kill-session), it leaves behind .dolt/noms/LOCK files that prevent the
server from reopening databases on restart, causing SIGSEGV or
"database is locked" errors.

Add CleanStaleNomsLocks() to internal/storage/dolt/ that scans a dolt
data directory and removes any noms LOCK files. Call it pre-flight in
PersistentPreRun before connecting to the server.

Also update doctor/fix/locks.go to remove the flock probe dependency
for noms LOCK cleanup — the probe was designed for the now-removed
embedded mode and is unreliable in server mode.

Co-authored-by: mayor <mayor@gastown.local>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 22:09:51 -08:00
..
audit fix: resolve CI failures on main (6 tests, formatting) 2026-02-23 09:50:33 -08:00
beads refactor: surgical JSONL removal from core Go files (bd-9ni.2) 2026-02-22 21:58:25 -08:00
compact fix: CI formatting, lint, and test failures blocking release 2026-02-22 18:53:35 -08:00
config feat: port collision fallback, idle monitor, and crash watchdog for Dolt server (test-hqvv5t, test-n99ihy) 2026-02-23 13:56:18 -08:00
configfile fix: remove JSONL storage functions and config field (bd-9ni.2) 2026-02-22 21:36:00 -08:00
debug chore: unexport 14 dead symbols across 8 packages 2026-02-07 09:24:22 -08:00
doltserver fix(ci): resolve baseline windows, lint, and fmt failures 2026-02-24 11:46:53 -08:00
formula feat(cook): support standalone expansion formula execution in bd mol wisp (#1903) 2026-02-22 13:00:25 -08:00
git perf(dolt): batch N+1 queries, per-invocation caching, sentinel errors (#1874) 2026-02-21 14:26:13 -08:00
gitlab refactor(storage): define Storage interface, decouple from concrete DoltStore (bd-l3o) 2026-02-17 10:11:08 +01:00
hooks feat(otel): opt-in OpenTelemetry instrumentation (#1940) 2026-02-22 15:36:57 -08:00
idgen fix(idgen): correct test vectors in hash_test.go 2025-12-19 18:13:56 -08:00
jira fix(jira): use correct API v3 /search/jql endpoint 2026-02-21 07:46:24 -08:00
linear fix(linear): correct Project sync issues from PR #2022 2026-02-24 12:24:19 -08:00
lockfile chore: remove daemon infrastructure (lockfile, activity signal) (bd-9u8zd) 2026-02-18 19:05:31 -08:00
molecules feat(testutil): branch-per-test isolation for dolt, tracker, molecules (L2) 2026-02-24 16:16:56 -08:00
query feat: make metadata queryable from bd list, bd search, and bd query (#1908) 2026-02-22 15:30:07 -08:00
recipes docs(setup): use --claim in generated agent templates 2026-02-24 03:29:33 +03:00
routing chore: clean up stale SQLite references in comments (bd-nlw2m) 2026-02-18 11:50:52 -08:00
storage fix: auto-clean stale Dolt noms LOCK files on bd startup (#2059) 2026-02-24 22:09:51 -08:00
telemetry fix: CI formatting, lint, and test failures blocking release 2026-02-22 18:53:35 -08:00
templates docs(setup): use --claim in generated agent templates 2026-02-24 03:29:33 +03:00
testutil feat(testutil): server crash detection + doctor branch-per-test (L2) 2026-02-24 19:56:24 -08:00
timeparsing chore: unexport 14 dead symbols across 8 packages 2026-02-07 09:24:22 -08:00
tracker feat(testutil): branch-per-test isolation for dolt, tracker, molecules (L2) 2026-02-24 16:16:56 -08:00
types feat(ready): add metadata filtering to bd ready (GH#1406) 2026-02-24 12:23:41 -08:00
ui fix: prevent OSC escape leaks in git hooks, detect stale hooks in doctor (GH#1303, GH#1466) 2026-02-22 21:22:19 -08:00
utils fix(dolt): stop wisp ID double-prefixing and add wisp fallback to ResolvePartialID 2026-02-24 15:50:46 -08:00
validation fix(lint): check AcceptanceCriteria field in LintIssue 2026-02-23 12:50:54 +00:00