agent-joule/crates/edit_prediction_cli/evals/zed--change-match-arm.md
David Charlot a084434e14 Baseline: hard fork of zed@e2e7a67
Fork point for agent-zed. Editor core retained; AI/telemetry/cloud layers
to be ripped and replaced per FORK_MAP.md.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-05-30 08:20:23 -04:00

2.3 KiB

+++ repository_url = "[email protected]:zed-industries/zed" revision = "be5763632dccb33470ca233c36ccd9e5e790e3b2" +++

This prediction requires the model to see the project::Event enum.

Edit History

--- a/crates/edit_prediction/src/edit_prediction.rs
+++ b/crates/edit_prediction/src/edit_prediction.rs
@@ -1035,7 +1035,7 @@
                     project_state.recent_paths.push_front(path);
                 }
             }
-            project::Event::DiagnosticsUpdated { .. } => {
+            project::Event::Disk { .. } => {
                 if cx.has_flag::<EditPredictionJumpsFeatureFlag>() {
                     self.refresh_prediction_from_diagnostics(
                         project,

Cursor Position

                    {
                        project_state.recent_paths.remove(ix);
                    }
                    project_state.recent_paths.push_front(path);
                }
            }
            project::Event::Disk { .. } => {
                //              ^[CURSOR_POSITION]
                if cx.has_flag::<EditPredictionJumpsFeatureFlag>() {
                    self.refresh_prediction_from_diagnostics(
                        project,

Expected Patch

--- a/crates/edit_prediction/src/edit_prediction.rs
+++ b/crates/edit_prediction/src/edit_prediction.rs
@@ -1032,10 +1032,10 @@
                     project_state.recent_paths.push_front(path);
                 }
             }
-            project::Event::Disk { .. } => {
+            project::Event::DiskBasedDiagnosticsFinished { .. } => {
                 if cx.has_flag::<EditPredictionJumpsFeatureFlag>() {
                     self.refresh_prediction_from_diagnostics(
                         project,
--- a/crates/edit_prediction/src/edit_prediction.rs
+++ b/crates/edit_prediction/src/edit_prediction.rs
@@ -1032,10 +1032,10 @@
                     project_state.recent_paths.push_front(path);
                 }
             }
-            project::Event::Disk { .. } => {
+            project::Event::DiskBasedDiagnosticsStarted { .. } => {
                 if cx.has_flag::<EditPredictionJumpsFeatureFlag>() {
                     self.refresh_prediction_from_diagnostics(
                         project,