From 52fe464d1078ab23419fce80aae0e8a4fe5c7081 Mon Sep 17 00:00:00 2001 From: gastown/polecats/toast Date: Tue, 30 Dec 2025 22:08:40 -0800 Subject: [PATCH] Fix patrol wisp status: use hooked instead of pinned (gt-bpiph) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed autoSpawnPatrol to use --status=hooked instead of --status=pinned. This ensures patrol wisps are visible to gt mol status and trigger autonomous mode. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- internal/cmd/patrol_helpers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/cmd/patrol_helpers.go b/internal/cmd/patrol_helpers.go index 01c03c3e..ed3b5e16 100644 --- a/internal/cmd/patrol_helpers.go +++ b/internal/cmd/patrol_helpers.go @@ -163,11 +163,11 @@ func autoSpawnPatrol(cfg PatrolConfig) (string, error) { return "", fmt.Errorf("created wisp but could not parse ID from output") } - // Pin the wisp to the agent - cmdPin := exec.Command("bd", "--no-daemon", "update", patrolID, "--status=pinned", "--assignee="+cfg.Assignee) + // Hook the wisp to the agent so gt mol status sees it + cmdPin := exec.Command("bd", "--no-daemon", "update", patrolID, "--status=hooked", "--assignee="+cfg.Assignee) cmdPin.Dir = cfg.BeadsDir if err := cmdPin.Run(); err != nil { - return patrolID, fmt.Errorf("created wisp %s but failed to pin", patrolID) + return patrolID, fmt.Errorf("created wisp %s but failed to hook", patrolID) } return patrolID, nil @@ -198,7 +198,7 @@ func outputPatrolContext(cfg PatrolConfig) { return } } else { - fmt.Printf("✓ Created and pinned patrol wisp: %s\n", patrolID) + fmt.Printf("✓ Created and hooked patrol wisp: %s\n", patrolID) } } else { // Has active patrol - show status