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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user