From 3191c9c3da031db4769165017822d6b10f84eccb Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Fri, 7 Nov 2025 14:54:58 -0800 Subject: [PATCH] Remove vc.db exclusion from FindDatabasePath filter Only filter out backup files, allow vc.db to be a valid database Amp-Thread-ID: https://ampcode.com/threads/T-8600ed89-42af-4785-b5dc-01ad37f1451d Co-authored-by: Amp --- internal/beads/beads.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/beads/beads.go b/internal/beads/beads.go index d867f219..ec307940 100644 --- a/internal/beads/beads.go +++ b/internal/beads/beads.go @@ -147,11 +147,11 @@ func FindDatabasePath() string { // Look for any .db file in the beads directory matches, err := filepath.Glob(filepath.Join(absBeadsDir, "*.db")) if err == nil && len(matches) > 0 { - // Filter out backup files and vc.db + // Filter out backup files only var validDBs []string for _, match := range matches { baseName := filepath.Base(match) - if !strings.Contains(baseName, ".backup") && baseName != "vc.db" { + if !strings.Contains(baseName, ".backup") { validDBs = append(validDBs, match) } }