edit prediction: Do not attempt to gather context for non-zeta2 models (#43943)

We were running the LLM-based context gathering for zeta1 and sweep
which don't use it.

Release Notes:

- N/A
This commit is contained in:
Agus Zubiaga
2025-12-01 21:14:00 +00:00
committed by GitHub
parent efff602909
commit 26f77032a2
+4
View File
@@ -2063,6 +2063,10 @@ impl Zeta {
cursor_position: language::Anchor,
cx: &mut Context<Self>,
) {
if !matches!(self.edit_prediction_model, ZetaEditPredictionModel::Zeta2) {
return;
}
if !matches!(&self.options().context, ContextMode::Agentic { .. }) {
return;
}