From 9e2aa9627c4d4312b1490fd91bf847918b6008a1 Mon Sep 17 00:00:00 2001 From: mayor Date: Sun, 25 Jan 2026 20:54:09 -0800 Subject: [PATCH] fix(hooks): skip JSONL checks in pre-push for dolt-native mode The pre-push hook was checking for uncommitted JSONL changes even in dolt-native sync mode where JSONL files don't exist. This blocked pushes unnecessarily. Now skips the check entirely when sync.mode is dolt-native. Fixes: hq-6ymh Co-Authored-By: Claude Opus 4.5 Executed-By: mayor Role: mayor --- cmd/bd/hooks.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/bd/hooks.go b/cmd/bd/hooks.go index 03e22412..dcf5a3cb 100644 --- a/cmd/bd/hooks.go +++ b/cmd/bd/hooks.go @@ -13,6 +13,7 @@ import ( "github.com/spf13/cobra" "github.com/steveyegge/beads/internal/beads" + "github.com/steveyegge/beads/internal/config" "github.com/steveyegge/beads/internal/git" ) @@ -669,6 +670,11 @@ func runPrePushHook(args []string) int { return exitCode } + // Skip JSONL checks for dolt-native mode (no JSONL files to check) + if config.GetSyncMode() == config.SyncModeDoltNative { + return 0 + } + // Check if we're in a bd workspace if _, err := os.Stat(".beads"); os.IsNotExist(err) { return 0