Skip to content

Commit 821e38b

Browse files
committed
chore(tui/tests): remove stale experimental mode test for startup configuration
1 parent eaa460e commit 821e38b

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

codex-rs/tui/src/chatwidget/tests.rs

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -4503,56 +4503,6 @@ async fn collaboration_modes_defaults_to_code_on_startup() {
45034503
assert_eq!(chat.current_model(), resolved_model);
45044504
}
45054505

4506-
#[tokio::test]
4507-
async fn experimental_mode_plan_is_ignored_on_startup() {
4508-
let codex_home = tempdir().expect("tempdir");
4509-
let cfg = ConfigBuilder::default()
4510-
.codex_home(codex_home.path().to_path_buf())
4511-
.cli_overrides(vec![
4512-
(
4513-
"features.collaboration_modes".to_string(),
4514-
TomlValue::Boolean(true),
4515-
),
4516-
(
4517-
"tui.experimental_mode".to_string(),
4518-
TomlValue::String("plan".to_string()),
4519-
),
4520-
])
4521-
.build()
4522-
.await
4523-
.expect("config");
4524-
let resolved_model = codex_core::test_support::get_model_offline(cfg.model.as_deref());
4525-
let otel_manager = test_otel_manager(&cfg, resolved_model.as_str());
4526-
let thread_manager = Arc::new(
4527-
codex_core::test_support::thread_manager_with_models_provider(
4528-
CodexAuth::from_api_key("test"),
4529-
cfg.model_provider.clone(),
4530-
),
4531-
);
4532-
let auth_manager =
4533-
codex_core::test_support::auth_manager_from_auth(CodexAuth::from_api_key("test"));
4534-
let init = ChatWidgetInit {
4535-
config: cfg,
4536-
frame_requester: FrameRequester::test_dummy(),
4537-
app_event_tx: AppEventSender::new(unbounded_channel::<AppEvent>().0),
4538-
initial_user_message: None,
4539-
enhanced_keys_supported: false,
4540-
auth_manager,
4541-
models_manager: thread_manager.get_models_manager(),
4542-
feedback: codex_feedback::CodexFeedback::new(),
4543-
is_first_run: true,
4544-
feedback_audience: FeedbackAudience::External,
4545-
model: Some(resolved_model.clone()),
4546-
startup_tooltip_override: None,
4547-
status_line_invalid_items_warned: Arc::new(AtomicBool::new(false)),
4548-
otel_manager,
4549-
};
4550-
4551-
let chat = ChatWidget::new(init, thread_manager);
4552-
assert_eq!(chat.active_collaboration_mode_kind(), ModeKind::Default);
4553-
assert_eq!(chat.current_model(), resolved_model);
4554-
}
4555-
45564506
#[tokio::test]
45574507
async fn set_model_updates_active_collaboration_mask() {
45584508
let (mut chat, _rx, _op_rx) = make_chatwidget_manual(Some("gpt-5.1")).await;

0 commit comments

Comments
 (0)