{"record":{"id":"f741815aff5c5558","repo":"BigPizzaV3/CodexPlusPlus","slug":"provider-sync-requires-launcher-hooks-with-codex-p","errorCode":null,"errorMessage":"provider sync requires launcher hooks with codex-plus-data integration","messagePattern":"provider sync requires launcher hooks with codex-plus-data integration","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/launcher.rs","lineNumber":711,"sourceCode":"        crate::ports::select_packaged_codex_debug_port(requested)\n    }\n\n    fn select_helper_port(&self, requested: u16) -> u16 {\n        crate::ports::select_platform_loopback_port(requested)\n    }\n\n    async fn load_settings(&self) -> anyhow::Result<BackendSettings> {\n        SettingsStore::default().load()\n    }\n\n    fn cleanup_unsupported_config(&self) -> anyhow::Result<()> {\n        let home = crate::relay_config::default_codex_home_dir();\n        crate::relay_config::cleanup_unsupported_approval_policies_in_home(&home)?;\n        Ok(())\n    }\n\n    async fn run_provider_sync(&self) -> anyhow::Result<()> {\n        anyhow::bail!(\"provider sync requires launcher hooks with codex-plus-data integration\")\n    }\n\n    async fn run_remote_control_session_recovery(&self) -> anyhow::Result<()> {\n        anyhow::bail!(\n            \"Remote Control session recovery requires launcher hooks with codex-plus-data integration\"\n        )\n    }\n\n    fn remote_control_session_recovery_is_safe_to_run(&self) -> bool {\n        crate::watcher::find_session_index_cleanup_blocking_processes().is_empty()\n    }\n\n    async fn apply_active_relay_profile(&self, settings: &BackendSettings) -> anyhow::Result<()> {\n        if !settings.relay_profiles_enabled {\n            return Ok(());\n        }\n        let profile = settings.active_relay_profile();\n        let home = crate::relay_config::default_codex_home_dir();","sourceCodeStart":693,"sourceCodeEnd":729,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6/crates/codex-plus-core/src/launcher.rs#L693-L729","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Install the launcher hooks with codex-plus-data integration (the installer's hook step) and retry","Use a launcher build compiled with the data-integration hooks feature","If sync is not needed, skip the provider-sync command — it is intentionally unavailable in this mode"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"// provider sync requires integrated launcher hooks\nif !launcher_hooks_installed() {\n    eprintln!(\"provider sync unavailable: install launcher hooks with codex-plus-data integration\");\n}","typeGuard":null,"tryCatchPattern":"match launcher.run_provider_sync().await {\n    Ok(()) => println!(\"providers synced\"),\n    Err(e) if e.to_string().contains(\"launcher hooks\") => {\n        eprintln!(\"run the installer's hook step first, then retry\");\n    }\n    Err(e) => return Err(e),\n}","preventionTips":["Run the install step that wires launcher hooks with codex-plus-data before using provider sync","Use a launcher build compiled with data-integration hooks","Check whether the standalone stub is active before exposing sync commands in your UI/CLI"],"tags":["launcher","provider-sync","integration"],"backgroundTag":"feature-not-enabled","analyzedSha":"b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6","analyzedAt":"2026-09-19T23:35:21.129Z","contentChangedAt":"2026-09-19T23:35:21.129Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}