Fix patrol wisp status: use hooked instead of pinned (gt-bpiph)

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 <noreply@anthropic.com>
This commit is contained in:
gastown/polecats/toast
2025-12-30 22:08:40 -08:00
committed by Steve Yegge
parent b4a7b930e5
commit 52fe464d10

View File

@@ -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