v0.2.6-pre.009-fix.001

This commit is contained in:
2026-08-21 12:45:08 +02:00
parent 2b7afab663
commit 42326e7f02
8 changed files with 132 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-wallet-desk/src/app_state.rs
// version: 11
// version: 12
//! Shared backend state owned by the Wallet Desk Tauri application.
@@ -607,7 +607,7 @@ impl AppState {
},
};
let dto = crate::view_projection(wallet_id.as_str(), view_enabled, configured_secret_candidate_count, &view);
*session = crate::WalletSession::View { wallet_id: wallet_id.clone(), path, view_enabled, wallet: std::boxed::Box::new(view) };
*session = crate::WalletSession::View { wallet_id: wallet_id.clone(), path, wallet: std::boxed::Box::new(view) };
ksp_logging_lib::info!(target: crate::TRACING_TARGET, domain = crate::TRACING_DOMAIN_WALLET_SESSION, wallet_id = wallet_id.as_str(), capability = "view", "Wallet VIEW session opened");
return std::result::Result::Ok(dto);
}
@@ -829,7 +829,10 @@ impl AppState {
}
ksp_logging_lib::warn!(target: crate::TRACING_TARGET, domain = crate::TRACING_DOMAIN_WALLET_SESSION, wallet_id = wallet_id.as_str(), operation, "Wallet OWNER metadata state conflict purged the stale handle and forced reauthorization");
},
other => *session = other,
other => {
*session = other;
return;
},
}
}

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-wallet-desk/src/wallet_session.rs
// version: 4
// version: 5
//! Durable root-scoped Wallet session lifecycle for Wallet Desk.
@@ -149,8 +149,6 @@ pub(crate) enum WalletSession {
path: std::path::PathBuf,
/// Authorized VIEW handle retaining metadata capability only in Rust.
wallet: std::boxed::Box<ksp_wallet_lib::WalletView>,
/// Whether the authenticated Wallet currently exposes a VIEW slot.
view_enabled: bool,
},
/// One Wallet kept open with OWNER capability.
Owner {