From 8e6a44b428e31f91b21edc97904fcdf4f0931ade Mon Sep 17 00:00:00 2001 From: Benjamin Carlsson Date: Fri, 4 Sep 2026 06:01:30 +0000 Subject: [PATCH] Fix the worktrees experimental feature test fixture (#42682) ## What changed Construct the worktrees entry in `experimental_features_popup_snapshot` with its string feature key and mark it writable, matching the current `ExperimentalFeatureItem` fields. GitOrigin-RevId: c12cd3d472504777e77d21a13a276e1d2381e85f --- codex-rs/tui/src/chatwidget/tests/popups_and_settings.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/tui/src/chatwidget/tests/popups_and_settings.rs b/codex-rs/tui/src/chatwidget/tests/popups_and_settings.rs index 10b4a43d9a..801ee925b8 100644 --- a/codex-rs/tui/src/chatwidget/tests/popups_and_settings.rs +++ b/codex-rs/tui/src/chatwidget/tests/popups_and_settings.rs @@ -3015,7 +3015,8 @@ async fn experimental_features_popup_snapshot() { enabled: true, }, ExperimentalFeatureItem { - feature: Some(Feature::Worktrees), + key: Feature::Worktrees.key().to_string(), + writable: true, name: worktrees.experimental_menu_name().unwrap().to_string(), description: worktrees.experimental_menu_description().unwrap().to_string(), enabled: false,