mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
feat: make rollout recorder reliable against errors (#17214)
The rollout writer now keeps an owned/monitored task handle, returns real Result acks for flush/persist/shutdown, retries failed flushes by reopening the rollout file, and keeps buffered items until they are successfully written. Session flushes are now real durability barriers for fork/rollback/read-after-write paths, while turn completion surfaces a warning if the rollout still cannot be saved after recovery.
This commit is contained in:
committed by
GitHub
Unverified
parent
085ffb4456
commit
8035cb03f1
@@ -82,8 +82,8 @@ impl CodexThread {
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
pub async fn flush_rollout(&self) {
|
||||
self.codex.session.flush_rollout().await;
|
||||
pub async fn flush_rollout(&self) -> std::io::Result<()> {
|
||||
self.codex.session.flush_rollout().await
|
||||
}
|
||||
|
||||
pub async fn submit_with_trace(
|
||||
|
||||
Reference in New Issue
Block a user