diff --git a/codex-rs/core/src/session_share.rs b/codex-rs/core/src/session_share.rs
index 9ffab84c77..4677130078 100644
--- a/codex-rs/core/src/session_share.rs
+++ b/codex-rs/core/src/session_share.rs
@@ -1,3 +1,6 @@
+use std::ffi::OsStr;
+use std::ffi::OsString;
+use std::io;
use std::path::Path;
use std::path::PathBuf;
use std::sync::Arc;
@@ -201,6 +204,7 @@ pub async fn download_rollout_if_available(
) -> anyhow::Result