diff --git a/codex-rs/exec/tests/suite/resume.rs b/codex-rs/exec/tests/suite/resume.rs index 89e125bf8..e5074da74 100644 --- a/codex-rs/exec/tests/suite/resume.rs +++ b/codex-rs/exec/tests/suite/resume.rs @@ -258,6 +258,10 @@ fn exec_resume_last_respects_cwd_filter_and_all_flag() -> anyhow::Result<()> { let path_b = find_session_file_containing_marker(&sessions_dir, &marker_b) .expect("no session file found for marker_b"); + // `updated_at` is second-granularity, so ensure the touch lands in a later second + // than the initial session creation on fast CI (especially Windows). + std::thread::sleep(std::time::Duration::from_millis(1100)); + // Make thread B deterministically newest according to rollout metadata. let session_id_b = extract_conversation_id(&path_b); let marker_b_touch = format!("resume-cwd-b-touch-{}", Uuid::new_v4());