From d5e2032490b6861e8419b9810f9852a268bb1888 Mon Sep 17 00:00:00 2001 From: Ahmed Ibrahim Date: Fri, 5 Sep 2025 14:52:07 -0700 Subject: [PATCH] tests --- codex-rs/mcp-server/tests/suite/list_resume.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/codex-rs/mcp-server/tests/suite/list_resume.rs b/codex-rs/mcp-server/tests/suite/list_resume.rs index eef69c6d96..b6d1ec07db 100644 --- a/codex-rs/mcp-server/tests/suite/list_resume.rs +++ b/codex-rs/mcp-server/tests/suite/list_resume.rs @@ -156,8 +156,17 @@ fn create_fake_rollout(codex_home: &Path, filename_ts: &str, meta_rfc3339: &str, let file_path = dir.join(format!("rollout-{filename_ts}-{uuid}.jsonl")); let mut lines = Vec::new(); - // Meta line with timestamp - lines.push(json!({"timestamp": meta_rfc3339, "id": uuid}).to_string()); + lines.push( + json!({ + "record_type": "session_meta", + "id": uuid, + "timestamp": meta_rfc3339, + "cwd": codex_home.to_string_lossy(), + "originator": "test", + "cli_version": "0.0.0-test" + }) + .to_string(), + ); // Minimal user message entry as a persisted response item lines.push( json!({