fix: create boot directory on install and make fixable

- Add boot directory creation to install.go (avoids warning on fresh install)
- Make boot-health check fixable via 'gt doctor --fix'
- Update FixHint to reference the fix command
This commit is contained in:
Dustin Smith
2026-01-19 20:43:41 +07:00
committed by John Ogle
parent 64c6a0d45f
commit b4bd2b8aa7
2 changed files with 31 additions and 6 deletions

View File

@@ -221,6 +221,13 @@ func runInstall(cmd *cobra.Command, args []string) error {
fmt.Printf(" ✓ Created deacon/.claude/settings.json\n")
}
// Create boot directory (deacon/dogs/boot/) for Boot watchdog.
// This avoids gt doctor warning on fresh install.
bootDir := filepath.Join(deaconDir, "dogs", "boot")
if err := os.MkdirAll(bootDir, 0755); err != nil {
fmt.Printf(" %s Could not create boot directory: %v\n", style.Dim.Render("⚠"), err)
}
// Initialize git BEFORE beads so that bd can compute repository fingerprint.
// The fingerprint is required for the daemon to start properly.
if installGit || installGitHub != "" {