fix(profile): recover interrupted subscription refreshes

Recover pending redo at startup, coordinate profile readers and writers, and publish Draft state only after persistence. Keep the Windows legacy path by default.
This commit is contained in:
Tunglies
2026-11-30 18:44:12 +08:00
parent 0415133c88
commit 2c8b532f68
22 changed files with 1465 additions and 172 deletions
+2
View File
@@ -231,6 +231,8 @@ impl CoreManager {
pub async fn init(&self) -> Result<bool> {
const MAX_PORT_FALLBACK_RETRIES: usize = 3;
crate::config::profile_storage::check()?;
if let Some(reason) = crate::config::Config::startup_core_block_reason() {
anyhow::bail!("core startup blocked after mixed proxy port fallback failure: {reason}");
}