From 1861b293620e56caba7747c4f2c1651ac681b190 Mon Sep 17 00:00:00 2001 From: Dev-31 Date: Mon, 20 Apr 2026 11:03:25 +0000 Subject: [PATCH] fix(polecat): inject doltStateRetries from config to fix issue #3686 --- internal/polecat/manager.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/polecat/manager.go b/internal/polecat/manager.go index 86c8c7bcce..2faf416d67 100644 --- a/internal/polecat/manager.go +++ b/internal/polecat/manager.go @@ -46,7 +46,8 @@ const ( // benefit since the caller already treats errors as warn-only. // 3 retries (total backoff ~3.5s) is sufficient to ride out transient // Dolt hiccups without punishing interactive workflows. - doltStateRetries = 3 + // doltStateRetries is now managed via config.Operational.Polecat.DoltStateRetries + doltStateRetries = config.Get().Operational.Polecat.DoltStateRetries ) // doltBackoff calculates exponential backoff with ±25% jitter for a given attempt (1-indexed).