Skip to content

Commit e3b728f

Browse files
steveyeggeanderaiprosicksclaude
committed
fix(daemon): gate dolt-backup patrol behind darwin check
The dolt-backup patrol uses iCloud Drive for offsite sync, which only exists on macOS. On Linux this generates HIGH priority escalation spam every ~15 minutes. Gate behind runtime.GOOS == "darwin". Based on PR #3041 (quad341) — extracted the 3-line fix from a larger kitchen-sink PR. Co-Authored-By: quad341 <noreply@users.github.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2593498 commit e3b728f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

internal/daemon/dolt_backup.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"os"
77
"os/exec"
88
"path/filepath"
9+
"runtime"
910
"strings"
1011
"time"
1112

@@ -32,6 +33,11 @@ func doltBackupInterval(config *DaemonPatrolConfig) time.Duration {
3233
// syncDoltBackups syncs each production database to its configured backup location.
3334
// Non-fatal: errors are logged but don't stop the daemon.
3435
func (d *Daemon) syncDoltBackups() {
36+
// Dolt backup uses iCloud Drive for offsite sync — only available on macOS.
37+
// On Linux this generates HIGH priority escalation spam every ~15 minutes.
38+
if runtime.GOOS != "darwin" {
39+
return
40+
}
3541
if !IsPatrolEnabled(d.patrolConfig, "dolt_backup") {
3642
return
3743
}

0 commit comments

Comments
 (0)