BigPizzaV3/CodexPlusPlus · error · anyhow::Error

provider sync requires launcher hooks with codex-plus-data…

Error message

provider sync requires launcher hooks with codex-plus-data integration

What it means

run_provider_sync in the default (standalone) launcher implementation always bails: provider synchronization is only implemented in builds/launchers that wire the launcher hooks with codex-plus-data integration. The base trait impl is a stub that refuses the operation rather than silently doing nothing.

Solutions

  1. Install the launcher hooks with codex-plus-data integration (the installer's hook step) and retry
  2. Use a launcher build compiled with the data-integration hooks feature
  3. If sync is not needed, skip the provider-sync command — it is intentionally unavailable in this mode
Defensive patterns

Strategy: try-catch

Validate before calling

// provider sync requires integrated launcher hooks
if !launcher_hooks_installed() {
    eprintln!("provider sync unavailable: install launcher hooks with codex-plus-data integration");
}

Try / catch

match launcher.run_provider_sync().await {
    Ok(()) => println!("providers synced"),
    Err(e) if e.to_string().contains("launcher hooks") => {
        eprintln!("run the installer's hook step first, then retry");
    }
    Err(e) => return Err(e),
}

Prevention

When it happens

Trigger: Invoking the provider-sync launcher command (e.g. `codex-plus launcher provider-sync` or the matching manager action) on a launcher that uses the default run_provider_sync implementation without hooks installed.

Common situations: Running a minimal/standalone build that omits codex-plus-data integration; forgetting to install the launcher hooks during setup; calling the sync API from scripts written against a fully integrated install.

Related errors


AI-assisted analysis of BigPizzaV3/CodexPlusPlus@b1ed92e5e4 (2026-09-19). Data as JSON: /api/errors/f741815aff5c5558. Report an issue: GitHub.

Appendix: source

Thrown at crates/codex-plus-core/src/launcher.rs:711

        crate::ports::select_packaged_codex_debug_port(requested)
    }

    fn select_helper_port(&self, requested: u16) -> u16 {
        crate::ports::select_platform_loopback_port(requested)
    }

    async fn load_settings(&self) -> anyhow::Result<BackendSettings> {
        SettingsStore::default().load()
    }

    fn cleanup_unsupported_config(&self) -> anyhow::Result<()> {
        let home = crate::relay_config::default_codex_home_dir();
        crate::relay_config::cleanup_unsupported_approval_policies_in_home(&home)?;
        Ok(())
    }

    async fn run_provider_sync(&self) -> anyhow::Result<()> {
        anyhow::bail!("provider sync requires launcher hooks with codex-plus-data integration")
    }

    async fn run_remote_control_session_recovery(&self) -> anyhow::Result<()> {
        anyhow::bail!(
            "Remote Control session recovery requires launcher hooks with codex-plus-data integration"
        )
    }

    fn remote_control_session_recovery_is_safe_to_run(&self) -> bool {
        crate::watcher::find_session_index_cleanup_blocking_processes().is_empty()
    }

    async fn apply_active_relay_profile(&self, settings: &BackendSettings) -> anyhow::Result<()> {
        if !settings.relay_profiles_enabled {
            return Ok(());
        }
        let profile = settings.active_relay_profile();
        let home = crate::relay_config::default_codex_home_dir();

View on GitHub (pinned to b1ed92e5e4)