BigPizzaV3/CodexPlusPlus · error · anyhow::Error

同步当前供应商失败:{error};回滚 live 配置也失败:{restore_error}

Error message

同步当前供应商失败:{error};回滚 live 配置也失败:{restore_error}

What it means

Raised in restart_codex_plus_after_stop: syncing the active relay profile into the live Codex home failed, and rolling back from the captured RelayLiveSnapshot also failed, leaving the live config in an uncertain state. Both the original sync error and the restore error are chained in the message.

Source

Thrown at apps/codex-plus-manager/src-tauri/src/commands.rs:668

            )
        }
    }
}

fn restart_codex_plus_after_stop<F>(
    request: &LaunchRequest,
    home: &Path,
    settings: Option<&BackendSettings>,
    spawn: F,
) -> anyhow::Result<()>
where
    F: FnOnce(&LaunchRequest) -> anyhow::Result<()>,
{
    let snapshot = if let Some(settings) = settings {
        let snapshot = RelayLiveSnapshot::capture(home)?;
        if let Err(error) = sync_active_relay_to_home(settings, home) {
            if let Err(restore_error) = snapshot.restore(home) {
                anyhow::bail!("同步当前供应商失败:{error};回滚 live 配置也失败:{restore_error}");
            }
            return Err(error);
        }
        Some(snapshot)
    } else {
        None
    };

    if let Err(error) = spawn(request) {
        if let Some(snapshot) = snapshot {
            if let Err(restore_error) = snapshot.restore(home) {
                anyhow::bail!("启动静默入口失败:{error};回滚 live 配置也失败:{restore_error}");
            }
        }
        return Err(error);
    }
    Ok(())
}

View on GitHub (pinned to f2074595a2)

Solutions

  1. Inspect both errors to find the root cause of the sync failure
  2. Manually restore config.toml/auth.json or re-apply the profile
  3. Check file permissions/locks on the Codex home directory
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at apps/codex-plus-manager/src-tauri/src/commands.rs:668 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BigPizzaV3/CodexPlusPlus@f2074595a2 (2026-08-23). Data as JSON: /api/errors/2c2382104e87d7cd. Report an issue: GitHub.