Feat/restore image generation history (#15223)

Restore image generation items in resumed thread history
This commit is contained in:
Won Park
2026-03-19 22:57:16 -07:00
committed by GitHub
parent b3a4da84da
commit 461ba012fc
26 changed files with 213 additions and 10 deletions

View File

@@ -3751,7 +3751,12 @@ async fn handle_output_item_done_records_image_save_history_message() {
image_output_path.display(),
))
.into();
assert_eq!(history.raw_items(), &[save_message, item]);
let copy_message: ResponseItem = DeveloperInstructions::new(
"If you need to use a generated image at another path, copy it and leave the original in place unless the user explicitly asks you to delete it."
.to_string(),
)
.into();
assert_eq!(history.raw_items(), &[save_message, copy_message, item]);
assert_eq!(
std::fs::read(&expected_saved_path).expect("saved file"),
b"foo"