From 21db430ab38e43feeb92399f9ca3a44a70ef56cc Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Mon, 16 Feb 2026 17:33:59 -0800 Subject: [PATCH] Require rollout file for sharing --- codex-rs/tui/src/chatwidget.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index a2a42fd723..d10c646a14 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -3738,7 +3738,11 @@ impl ChatWidget { self.add_error_message("Current session is not ready to share yet.".to_string()); return; }; - if self.rollout_path().is_none() { + let Some(rollout_path) = self.rollout_path() else { + self.add_error_message("Current session is not ready to share yet.".to_string()); + return; + }; + if !rollout_path.exists() { self.add_error_message("Current session is not ready to share yet.".to_string()); return; }