BigPizzaV3/CodexPlusPlus · error · anyhow::Error

archived lookup task failed: {error}

Error message

archived lookup task failed: {error}

What it means

Wrapped failure thrown by LauncherDataService::find_archived_thread_by_title when its spawn_blocking task fails at the task level, formatted as "archived lookup task failed: {error}" (a JoinError). The archived-title search never ran to completion; a clean Ok/Err from the search itself would not carry this wrapper.

Source

Thrown at apps/codex-plus-launcher/src/main.rs:665

        .await
        .map_err(|error| anyhow::anyhow!("export markdown task failed: {error}"))
    }

    async fn thread_usage_history(&self, session: SessionRef) -> anyhow::Result<Value> {
        let adapter = self.storage_adapter();
        tokio::task::spawn_blocking(move || adapter.codex_thread_usage_history(&session))
            .await
            .map_err(|error| anyhow::anyhow!("thread usage history task failed: {error}"))
    }

    async fn find_archived_thread_by_title(
        &self,
        title: String,
    ) -> anyhow::Result<Option<SessionRef>> {
        let adapter = self.storage_adapter();
        tokio::task::spawn_blocking(move || adapter.find_archived_thread_by_title(&title))
            .await
            .map_err(|error| anyhow::anyhow!("archived lookup task failed: {error}"))
    }

    async fn recover_remote_control_session(&self, thread_id: String) -> anyhow::Result<Value> {
        let settings = codex_plus_core::settings::SettingsStore::default()
            .load()
            .unwrap_or_default();
        let profile = settings.active_relay_profile();
        if !settings.relay_profiles_enabled
            || profile.relay_mode != codex_plus_core::settings::RelayMode::Official
            || !profile.official_mix_api_key
        {
            return Ok(json!({
                "status": "skipped",
                "message": "Remote Control session recovery is disabled for the active profile"
            }));
        }
        let home = codex_plus_core::codex_sqlite::default_codex_home_dir();
        let target_provider =

View on GitHub (pinned to f2074595a2)

Solutions

  1. 查看归档查找任务的 panic 日志
  2. 确认归档数据库可访问
  3. 重试查找
  4. 修复查找逻辑中对异常数据的直接 unwrap
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at apps/codex-plus-launcher/src/main.rs:665 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/e000b1bfa4f3c599. Report an issue: GitHub.