diff --git a/codex-rs/exec/src/cli_tests.rs b/codex-rs/exec/src/cli_tests.rs index 5eb3245bba..304fc8072f 100644 --- a/codex-rs/exec/src/cli_tests.rs +++ b/codex-rs/exec/src/cli_tests.rs @@ -102,7 +102,6 @@ fn parses_config_isolation_flags() { assert!(cli.ignore_user_config); assert!(cli.ignore_rules); - assert_eq!(cli.thread_source, None); } #[test] diff --git a/codex-rs/exec/tests/suite/resume.rs b/codex-rs/exec/tests/suite/resume.rs index 4e4ef19da6..ead58a07d2 100644 --- a/codex-rs/exec/tests/suite/resume.rs +++ b/codex-rs/exec/tests/suite/resume.rs @@ -199,6 +199,7 @@ async fn exec_resume_last_appends_to_existing_file() -> anyhow::Result<()> { .expect("rollout should contain session metadata"), )?; assert_eq!(meta["payload"]["history_mode"], "paginated"); + assert_eq!(meta["payload"]["thread_source"], "user"); // 2) Second run: resume the most recent file with a new marker. let marker2 = format!("resume-last-2-{}", Uuid::new_v4());