feat: annotate conversations with model_provider for filtering

This commit is contained in:
Michael Bolin
2025-10-26 18:57:57 -07:00
parent a55b0c4bcc
commit 1fae499fd5
14 changed files with 547 additions and 74 deletions
+9 -2
View File
@@ -389,8 +389,15 @@ async fn resolve_resume_path(
args: &crate::cli::ResumeArgs,
) -> anyhow::Result<Option<PathBuf>> {
if args.last {
match codex_core::RolloutRecorder::list_conversations(&config.codex_home, 1, None, &[])
.await
let default_provider_filter = vec![config.model_provider_id.clone()];
match codex_core::RolloutRecorder::list_conversations(
&config.codex_home,
1,
None,
&[],
Some(default_provider_filter.as_slice()),
)
.await
{
Ok(page) => Ok(page.items.first().map(|it| it.path.clone())),
Err(e) => {