mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
Allow prepared forks to use source revalidation (#59468)
## What changed Add `PreparedFork::with_source_revalidation` for backends that revalidate the source when making the child's history reference durable, allowing the source reservation to be omitted. Rename the reservation-backed constructor to `with_source_reservation` and update the local thread store to use it, preserving its source deletion protection. GitOrigin-RevId: 659c23aaf83a3856eb628ea37f1b0a153d376516
This commit is contained in:
@@ -51,7 +51,7 @@ pub(super) async fn prepare(
|
||||
read_fork_history(store, thread_id, boundary, lineage)
|
||||
})
|
||||
.await?;
|
||||
Ok(PreparedFork::new(
|
||||
Ok(PreparedFork::with_source_reservation(
|
||||
thread_id,
|
||||
history_base,
|
||||
Arc::new(model_context),
|
||||
|
||||
Reference in New Issue
Block a user