From a5525a811c915f646a3db539f7ff1d1d0958c06d Mon Sep 17 00:00:00 2001 From: Ben Kunkle Date: Fri, 6 Mar 2026 10:23:06 -0600 Subject: [PATCH] ep: Refresh available experiments when opening ep button (#50949) Closes #ISSUE Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [ ] Done a self-review taking into account security and performance aspects - [ ] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A *or* Added/Fixed/Improved ... --- crates/edit_prediction_ui/src/edit_prediction_button.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/edit_prediction_ui/src/edit_prediction_button.rs b/crates/edit_prediction_ui/src/edit_prediction_button.rs index 5e9ec08b96442dc8c10e89aa43f891e7743f85ef..dac4c812f8ac1377423f7044c1c250b5a5333f64 100644 --- a/crates/edit_prediction_ui/src/edit_prediction_button.rs +++ b/crates/edit_prediction_ui/src/edit_prediction_button.rs @@ -1195,6 +1195,9 @@ impl EditPredictionButton { if cx.is_staff() { if let Some(store) = EditPredictionStore::try_global(cx) { + store.update(cx, |store, cx| { + store.refresh_available_experiments(cx); + }); let store = store.read(cx); let experiments = store.available_experiments().to_vec(); let preferred = store.preferred_experiment().map(|s| s.to_owned());