fix(doctor): use --fix instead of manual commands (#715)

UX improvement: doctor advice now recommends bd doctor --fix instead of manual commands
This commit is contained in:
Ryan
2025-12-23 02:30:33 -08:00
committed by GitHub
parent 14e1f5a2e0
commit e8d0860571
2 changed files with 5 additions and 5 deletions

View File

@@ -394,7 +394,7 @@ func CheckSyncBranchHealth(path string) DoctorCheck {
Status: StatusWarning,
Message: fmt.Sprintf("Local %s diverged from remote", syncBranch),
Detail: "The remote sync branch was likely reset/force-pushed. Your local branch has orphaned history.",
Fix: fmt.Sprintf("Reset local branch: git branch -D %s (it will be recreated on next bd sync)", syncBranch),
Fix: "Run 'bd doctor --fix' to reset sync branch",
}
}
@@ -479,7 +479,7 @@ func CheckSyncBranchHealth(path string) DoctorCheck {
Status: StatusWarning,
Message: fmt.Sprintf("Sync branch %s commits behind %s on source files", aheadCount, mainBranch),
Detail: fmt.Sprintf("%d source files differ between %s and %s. The sync branch has stale code.", fileCount, syncBranch, mainBranch),
Fix: fmt.Sprintf("Reset sync branch: git branch -f %s %s && git push --force-with-lease origin %s", syncBranch, mainBranch, syncBranch),
Fix: "Run 'bd doctor --fix' to reset sync branch to main",
}
}
}