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 authored and GitHub committed 2025-12-01 21:14:00 +00:00
1 parent bb6cb4e0b3
commit 9bbc099f05
1 file changed
+4
+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;
}