From c58e9880bf60324b0fbb64917b6d1c8e197d4ea4 Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Tue, 23 Jun 2026 17:55:13 -0400 Subject: [PATCH] fix: tolerate missing private_key_nsec in agent store (#1220) Signed-off-by: Will Pfleger Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 --- desktop/src-tauri/src/managed_agents/types.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop/src-tauri/src/managed_agents/types.rs b/desktop/src-tauri/src/managed_agents/types.rs index 51761a0f92..82445106c9 100644 --- a/desktop/src-tauri/src/managed_agents/types.rs +++ b/desktop/src-tauri/src/managed_agents/types.rs @@ -88,6 +88,9 @@ pub struct ManagedAgentRecord { pub name: String, #[serde(default)] pub persona_id: Option, + /// `#[serde(default)]` so an old build still parses a store whose inline + /// key was stripped after a keyring build migrated it into the Keychain. + #[serde(default)] pub private_key_nsec: String, /// NIP-OA auth tag JSON. Computed at agent creation time. ///