Skip to content

Commit c58e988

Browse files
wpfleger96npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7
andauthored
fix: tolerate missing private_key_nsec in agent store (#1220)
Signed-off-by: Will Pfleger <[email protected]> Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@sprout-oss.stage.blox.sqprod.co>
1 parent 6b5cf32 commit c58e988

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • desktop/src-tauri/src/managed_agents

‎desktop/src-tauri/src/managed_agents/types.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ pub struct ManagedAgentRecord {
8888
pub name: String,
8989
#[serde(default)]
9090
pub persona_id: Option<String>,
91+
/// `#[serde(default)]` so an old build still parses a store whose inline
92+
/// key was stripped after a keyring build migrated it into the Keychain.
93+
#[serde(default)]
9194
pub private_key_nsec: String,
9295
/// NIP-OA auth tag JSON. Computed at agent creation time.
9396
///

0 commit comments

Comments
 (0)