BigPizzaV3/CodexPlusPlus · error · anyhow::Error
session index cleanup preview task failed: {error}
Error message
session index cleanup preview task failed: {error} What it means
Wrapped failure thrown by the preview_session_index_cleanup Tauri command when its spawn_blocking task around codex_plus_data::preview_session_index_cleanup fails at the task level (JoinError), surfaced as "session index cleanup preview task failed: {error}". The preview never produced a snapshot; domain-level preview errors come from the inner call instead.
Source
Thrown at apps/codex-plus-manager/src-tauri/src/commands.rs:2899
is_saved: settings.provider_sync_saved_providers.contains(id),
});
}
}
targets.targets.sort_by(|left, right| {
right
.is_current_provider
.cmp(&left.is_current_provider)
.then_with(|| left.id.cmp(&right.id))
});
}
#[tauri::command]
pub async fn preview_session_index_cleanup() -> CommandResult<Value> {
let result = tauri::async_runtime::spawn_blocking(|| {
codex_plus_data::preview_session_index_cleanup(None)
})
.await
.map_err(|error| anyhow::anyhow!("session index cleanup preview task failed: {error}"))
.and_then(|result| result);
match result {
Ok(preview) => ok(
&format!(
"发现 {} 条仅存在于任务索引中的候选记录。",
preview.candidates.len()
),
json!({
"snapshotSha256": preview.snapshot_sha256,
"candidates": preview.candidates,
}),
),
Err(error) => failed(&format!("预览失效任务索引失败:{error}"), json!({})),
}
}
#[tauri::command]
pub async fn apply_session_index_cleanup(View on GitHub (pinned to f2074595a2)
Solutions
- 查看预览任务的 panic 堆栈
- 确认 __session_index 数据库状态正常
- 重试预览
- 修复 preview_session_index_cleanup 内的防御性校验
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at apps/codex-plus-manager/src-tauri/src/commands.rs:2899 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/a4321503fcb46f13.
Report an issue: GitHub.