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:
committed by
Steve Yegge
parent
b4a7b930e5
commit
52fe464d10
@@ -163,11 +163,11 @@ func autoSpawnPatrol(cfg PatrolConfig) (string, error) {
|
|||||||
return "", fmt.Errorf("created wisp but could not parse ID from output")
|
return "", fmt.Errorf("created wisp but could not parse ID from output")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pin the wisp to the agent
|
// Hook the wisp to the agent so gt mol status sees it
|
||||||
cmdPin := exec.Command("bd", "--no-daemon", "update", patrolID, "--status=pinned", "--assignee="+cfg.Assignee)
|
cmdPin := exec.Command("bd", "--no-daemon", "update", patrolID, "--status=hooked", "--assignee="+cfg.Assignee)
|
||||||
cmdPin.Dir = cfg.BeadsDir
|
cmdPin.Dir = cfg.BeadsDir
|
||||||
if err := cmdPin.Run(); err != nil {
|
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
|
return patrolID, nil
|
||||||
@@ -198,7 +198,7 @@ func outputPatrolContext(cfg PatrolConfig) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("✓ Created and pinned patrol wisp: %s\n", patrolID)
|
fmt.Printf("✓ Created and hooked patrol wisp: %s\n", patrolID)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Has active patrol - show status
|
// Has active patrol - show status
|
||||||
|
|||||||
Reference in New Issue
Block a user