From 38a6097512a94bff453cfcbf0076415e359b897a Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Tue, 30 Dec 2025 18:01:58 -0800 Subject: [PATCH] fix(doctor): wire up CheckRedirectNotTracked and FixRedirectTracking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Completes the work from #813 by actually calling the new functions: - Add Check 14b in doctor.go for redirect file tracking detection - Add Redirect Not Tracked case in doctor_fix.go switch statement Without this wiring, bd doctor would not detect or fix already-tracked redirect files, only prevent new ones via the updated .gitignore template. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 Executed-By: beads/crew/dave Rig: beads Role: crew --- cmd/bd/doctor.go | 5 +++++ cmd/bd/doctor_fix.go | 2 ++ 2 files changed, 7 insertions(+) diff --git a/cmd/bd/doctor.go b/cmd/bd/doctor.go index 7b2abb3c..5686d10c 100644 --- a/cmd/bd/doctor.go +++ b/cmd/bd/doctor.go @@ -412,6 +412,11 @@ func runDiagnostics(path string) doctorResult { result.Checks = append(result.Checks, issuesTrackingCheck) // Don't fail overall check for tracking issues, just warn + // Check 14b: Redirect file not tracked (worktree support) + redirectCheck := convertWithCategory(doctor.CheckRedirectNotTracked(), doctor.CategoryGit) + result.Checks = append(result.Checks, redirectCheck) + // Don't fail overall check for redirect tracking, just warn + // Check 15: Git merge driver configuration mergeDriverCheck := convertWithCategory(doctor.CheckMergeDriver(path), doctor.CategoryGit) result.Checks = append(result.Checks, mergeDriverCheck) diff --git a/cmd/bd/doctor_fix.go b/cmd/bd/doctor_fix.go index 67fe9a5c..76443bfb 100644 --- a/cmd/bd/doctor_fix.go +++ b/cmd/bd/doctor_fix.go @@ -225,6 +225,8 @@ func applyFixList(path string, fixes []doctorCheck) { switch check.Name { case "Gitignore": err = doctor.FixGitignore() + case "Redirect Not Tracked": + err = doctor.FixRedirectTracking() case "Git Hooks": err = fix.GitHooks(path) case "Daemon Health":