From 40cc4c9335bbd7d3320bffa705392eeebee7d3fa Mon Sep 17 00:00:00 2001 From: rictus Date: Wed, 21 Jan 2026 17:29:41 -0800 Subject: [PATCH] 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 --- internal/cmd/polecat_identity.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/internal/cmd/polecat_identity.go b/internal/cmd/polecat_identity.go index f0e98900..d6b94c22 100644 --- a/internal/cmd/polecat_identity.go +++ b/internal/cmd/polecat_identity.go @@ -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)