fix: tolerate missing private_key_nsec in agent store (#1220)

Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
Will Pfleger
2026-06-23 17:55:13 -04:00
committed by GitHub
parent 6b5cf325c2
commit c58e9880bf

View File

@@ -88,6 +88,9 @@ pub struct ManagedAgentRecord {
pub name: String,
#[serde(default)]
pub persona_id: Option<String>,
/// `#[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.
///