/{cmd,docs,internal,website}: make dolt backend explicitly single process

This commit is contained in:
Test
2026-01-20 16:51:14 -08:00
parent 869ee19f66
commit 7ed6849d19
16 changed files with 396 additions and 36 deletions

View File

@@ -570,6 +570,16 @@ var rootCmd = &cobra.Command{
debug.Logf("wisp operation detected, using direct mode")
}
// Dolt backend (embedded) is single-process-only; never use daemon/RPC.
// This must be checked after dbPath is resolved.
if !noDaemon && singleProcessOnlyBackend() {
noDaemon = true
daemonStatus.AutoStartEnabled = false
daemonStatus.FallbackReason = FallbackSingleProcessOnly
daemonStatus.Detail = "backend is single-process-only (dolt): daemon mode disabled; using direct mode"
debug.Logf("single-process backend detected, using direct mode")
}
// Try to connect to daemon first (unless --no-daemon flag is set or worktree safety check fails)
if noDaemon {
// Only set FallbackFlagNoDaemon if not already set by auto-bypass logic