fix(identity): copy all agent fields during polecat identity rename

The rename operation was only copying AgentState and CleanupStatus,
missing HookBead (the primary fix), ActiveMR, and NotificationLevel.
This ensures all agent state is preserved when renaming an identity.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rictus
2026-01-21 17:29:41 -08:00
committed by beads/crew/emma
parent 82079f9715
commit 40cc4c9335

View File

@@ -591,10 +591,13 @@ func runPolecatIdentityRename(cmd *cobra.Command, args []string) error {
// Create new identity bead with inherited fields
newFields := &beads.AgentFields{
RoleType: "polecat",
Rig: rigName,
AgentState: oldFields.AgentState,
CleanupStatus: oldFields.CleanupStatus,
RoleType: "polecat",
Rig: rigName,
AgentState: oldFields.AgentState,
HookBead: oldFields.HookBead,
CleanupStatus: oldFields.CleanupStatus,
ActiveMR: oldFields.ActiveMR,
NotificationLevel: oldFields.NotificationLevel,
}
newTitle := fmt.Sprintf("Polecat %s in %s", newName, rigName)