Require rollout file for sharing

This commit is contained in:
Charles Cunningham
2026-02-16 17:33:59 -08:00
parent 4db264bb7d
commit 21db430ab3

View File

@@ -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;
}