BigPizzaV3/CodexPlusPlus · error · anyhow::Error

当前聚合供应商配置不完整

Error message

当前聚合供应商配置不完整

What it means

Guard in sync_active_relay_to_home: the active relay profile uses Aggregate mode but the required aggregate configuration (active_aggregate_relay profile/contents) is missing or incomplete, so the live sync cannot be performed.

Source

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

            Ok(()) => {}
            Err(error) if error.kind() == std::io::ErrorKind::NotFound => {}
            Err(error) => return Err(error.into()),
        },
    }
    Ok(())
}

fn sync_active_relay_to_home(
    settings: &BackendSettings,
    home: &Path,
) -> anyhow::Result<codex_plus_core::relay_config::RelayApplyResult> {
    if !settings.relay_profiles_enabled {
        anyhow::bail!("供应商配置总开关已关闭,未同步 live 配置");
    }
    let relay = settings.active_relay_profile();
    if relay.relay_mode == codex_plus_core::settings::RelayMode::Aggregate {
        if settings.active_aggregate_relay_profile().is_none() {
            anyhow::bail!("当前聚合供应商配置不完整");
        }
        let aggregate = settings
            .active_aggregate_relay_profile()
            .ok_or_else(|| anyhow::anyhow!("当前聚合供应商配置不完整"))?;
        return codex_plus_core::relay_config::apply_relay_config_to_home_with_session_provider(
            home,
            &codex_plus_core::protocol_proxy::local_responses_proxy_base_url(
                codex_plus_core::protocol_proxy::DEFAULT_PROTOCOL_PROXY_PORT,
            ),
            "codex-plus-aggregate",
            codex_plus_core::settings::RelayProtocol::Responses,
            codex_plus_core::protocol_proxy::DEFAULT_PROTOCOL_PROXY_PORT,
            aggregate.session_provider,
        );
    }
    if relay.relay_mode == codex_plus_core::settings::RelayMode::Official
        && !relay.official_mix_api_key
    {

View on GitHub (pinned to f2074595a2)

Solutions

  1. Fully configure or select an aggregate relay profile
  2. Switch the active profile to a non-aggregate mode
  3. Complete the missing aggregate provider entries before syncing
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at apps/codex-plus-manager/src-tauri/src/commands.rs:740 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/59be3ebaf3f11ebc. Report an issue: GitHub.