From 26d696cdc3213db0db23e441f88a3cd7115fabb5 Mon Sep 17 00:00:00 2001 From: Olivier Debeuf De Rijcker Date: Sun, 4 Jan 2026 12:14:49 +0100 Subject: [PATCH] fix: recommend 'gt daemon start' instead of invalid 'gt daemon init' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The gt doctor patrol-hooks-wired check was recommending 'gt daemon init' which doesn't exist. The daemon is auto-initialized when running 'gt daemon start', so that's the correct command to recommend. Fixes #94 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- internal/doctor/patrol_check.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/doctor/patrol_check.go b/internal/doctor/patrol_check.go index be7f2e91..395c7212 100644 --- a/internal/doctor/patrol_check.go +++ b/internal/doctor/patrol_check.go @@ -115,7 +115,7 @@ func (c *PatrolMoleculesExistCheck) Fix(ctx *CheckContext) error { rigPath := filepath.Join(ctx.TownRoot, rigName) for _, mol := range missing { desc := getPatrolMoleculeDesc(mol) - cmd := exec.Command("bd", "create", + cmd := exec.Command("bd", "create", //nolint:gosec // G204: args are constructed internally "--type=molecule", "--title="+mol, "--description="+desc, @@ -167,7 +167,7 @@ func (c *PatrolHooksWiredCheck) Run(ctx *CheckContext) *CheckResult { Name: c.Name(), Status: StatusWarning, Message: "Daemon config not found", - FixHint: "Run 'gt daemon init' to configure daemon", + FixHint: "Run 'gt daemon start' to start the daemon", } } @@ -220,7 +220,7 @@ func (c *PatrolHooksWiredCheck) Run(ctx *CheckContext) *CheckResult { Name: c.Name(), Status: StatusWarning, Message: "Patrol hooks not configured in daemon", - FixHint: "Configure patrols in mayor/daemon.json or run 'gt daemon init'", + FixHint: "Configure patrols in mayor/daemon.json or run 'gt daemon start'", } }