diff --git a/crates/edit_prediction/src/edit_prediction.rs b/crates/edit_prediction/src/edit_prediction.rs
index d61cba71922582b98bdc64444bc8227c0043fa2e..16ce0d659905528b2e63d50671914d4d6b12a1f4 100644
--- a/crates/edit_prediction/src/edit_prediction.rs
+++ b/crates/edit_prediction/src/edit_prediction.rs
@@ -353,7 +353,7 @@ impl ProjectState {
drop(pending_prediction.task);
} else {
cx.spawn(async move |this, cx| {
- let Some(prediction_id) = pending_prediction.task.await else {
+ let Some((prediction_id, model_version)) = pending_prediction.task.await else {
return;
};
@@ -362,7 +362,7 @@ impl ProjectState {
prediction_id,
EditPredictionRejectReason::Canceled,
false,
- None,
+ model_version,
None,
cx,
);
@@ -460,7 +460,7 @@ pub enum DiagnosticSearchScope {
#[derive(Debug)]
struct PendingPrediction {
id: usize,
- task: Task