mirror of
https://github.com/openai/codex.git
synced 2026-04-28 02:11:08 +03:00
review
This commit is contained in:
@@ -26,6 +26,7 @@ codex-login = { path = "../login" }
|
||||
codex-linux-sandbox = { path = "../linux-sandbox" }
|
||||
codex-mcp-server = { path = "../mcp-server" }
|
||||
codex-tui = { path = "../tui" }
|
||||
predicates = "3.1.3"
|
||||
serde_json = "1"
|
||||
tokio = { version = "1", features = [
|
||||
"io-std",
|
||||
@@ -36,7 +37,6 @@ tokio = { version = "1", features = [
|
||||
] }
|
||||
tracing = "0.1.41"
|
||||
tracing-subscriber = "0.3.19"
|
||||
predicates = "3.1.3"
|
||||
|
||||
[dev-dependencies]
|
||||
assert_cmd = "2"
|
||||
|
||||
@@ -293,9 +293,6 @@ async fn rollout_writer(
|
||||
if let Err(e) = write_json_line(&mut file, &meta).await {
|
||||
warn!("Failed to write session meta: {e}");
|
||||
}
|
||||
if let Err(e) = file.flush().await {
|
||||
warn!("Failed to flush meta: {e}");
|
||||
}
|
||||
}
|
||||
|
||||
// Main loop
|
||||
@@ -347,7 +344,8 @@ pub async fn prepare_rollout_recorder(
|
||||
resume_path: Option<&Path>,
|
||||
) -> RolloutSetup {
|
||||
// Try to resume
|
||||
let (mut restored_items, mut recorder_opt) = (None, None);
|
||||
let mut restored_items = None;
|
||||
let mut recorder_opt = None;
|
||||
|
||||
if let Some(path) = resume_path {
|
||||
match RolloutRecorder::resume(path).await {
|
||||
|
||||
Reference in New Issue
Block a user