test: verify default exec thread source in persisted metadata

This commit is contained in:
pakrym-oai
2026-08-22 16:48:09 -07:00
parent 8daa0e3b54
commit da2cd2e98b
2 changed files with 1 additions and 1 deletions

View File

@@ -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]

View File

@@ -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());