fix(sling): Add trailing slash to town-level agent IDs
Town-level agents (mayor/, deacon/) need trailing slash to match addressToIdentity() normalization. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -599,11 +599,12 @@ func resolveSelfTarget() (agentID string, pane string, hookRoot string, err erro
|
||||
}
|
||||
|
||||
// Build agent identity from role
|
||||
// Town-level agents use trailing slash to match addressToIdentity() normalization
|
||||
switch roleInfo.Role {
|
||||
case RoleMayor:
|
||||
agentID = "mayor"
|
||||
agentID = "mayor/"
|
||||
case RoleDeacon:
|
||||
agentID = "deacon"
|
||||
agentID = "deacon/"
|
||||
case RoleWitness:
|
||||
agentID = fmt.Sprintf("%s/witness", roleInfo.Rig)
|
||||
case RoleRefinery:
|
||||
|
||||
Reference in New Issue
Block a user