test(core,exec): align fork replay and resume expectations

This commit is contained in:
Friel
2026-04-02 02:33:50 +00:00
parent 5dbd418beb
commit a364d0358c
2 changed files with 6 additions and 10 deletions

View File

@@ -204,16 +204,12 @@ async fn record_initial_history_forked_materializes_fork_reference_rollout_items
.record_initial_history(InitialHistory::Forked(rollout_items))
.await;
let reconstruction_turn = session.new_default_turn().await;
let mut expected = vec![user_message("first user"), assistant_message("first reply")];
expected.extend(
session
.build_initial_context(reconstruction_turn.as_ref())
.await,
);
let history = session.state.lock().await.clone_history();
assert_eq!(expected, history.raw_items());
assert_eq!(
vec![user_message("first user"), assistant_message("first reply")],
history.raw_items()
);
assert!(session.reference_context_item().await.is_none());
}
#[tokio::test]

View File

@@ -147,9 +147,9 @@ fn exec_resume_last_appends_to_existing_file() -> anyhow::Result<()> {
.arg("--skip-git-repo-check")
.arg("-C")
.arg(&repo_root)
.arg(&prompt2)
.arg("resume")
.arg("--last")
.arg(&prompt2)
.assert()
.success();