fix: Use hq- prefix for global agents in status display (gt-vcvyd)

Global agents like mayor and deacon are town-level agents that should use
the "hq-" prefix, not "gt-". Changed to use AgentBeadIDWithPrefix with
TownBeadsPrefix for consistency with the beads architecture.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
furiosa
2026-01-05 16:30:28 -08:00
committed by Steve Yegge
parent a459cd9fd6
commit 85a522f725

View File

@@ -545,8 +545,8 @@ func renderAgentDetails(agent AgentRuntime, indent string, hooks []AgentHookInfo
addr := strings.TrimSuffix(agent.Address, "/") // Remove trailing slash for global agents
parts := strings.Split(addr, "/")
if len(parts) == 1 {
// Global agent: mayor/, deacon/ → gt-mayor, gt-deacon
agentBeadID = beads.AgentBeadID("", parts[0], "")
// Global agent: mayor/, deacon/ → hq-mayor, hq-deacon
agentBeadID = beads.AgentBeadIDWithPrefix(beads.TownBeadsPrefix, "", parts[0], "")
} else if len(parts) >= 2 {
rig := parts[0]
prefix := beads.GetPrefixForRig(townRoot, rig)