fix(hook): Read hook_bead from database column, not description (gt-7m33w)
The hook discovery code was reading hook_bead from the agent bead's description field (parsed via ParseAgentFieldsFromDescription), but the slot update code writes to the hook_bead database column via 'bd slot set'. This mismatch caused polecats to see stale hook values from the description instead of the current value from the database. Fixed in: - molecule_status.go: Use agentBead.HookBead instead of parsing description - status.go: Use issue.HookBead directly - lifecycle.go: Update all GUPP and orphan detection to read from database columns instead of parsing description 🤖 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
65a5c7888f
commit
278abf15d6
@@ -174,11 +174,11 @@ func runStatus(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
// Pre-fetch all hook beads (referenced in agent beads) in a single query
|
||||
// Use the HookBead field from the database column, not parsed from description.
|
||||
var allHookIDs []string
|
||||
for _, issue := range allAgentBeads {
|
||||
fields := beads.ParseAgentFields(issue.Description)
|
||||
if fields != nil && fields.HookBead != "" {
|
||||
allHookIDs = append(allHookIDs, fields.HookBead)
|
||||
if issue.HookBead != "" {
|
||||
allHookIDs = append(allHookIDs, issue.HookBead)
|
||||
}
|
||||
}
|
||||
allHookBeads, _ := agentBeads.ShowMultiple(allHookIDs)
|
||||
|
||||
Reference in New Issue
Block a user