Skip to content

Commit ab394d4

Browse files
committed
chore(tui/tests): remove stale experimental mode test for startup configuration
1 parent 64b906c commit ab394d4

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
@@ -5323,56 +5323,6 @@ async fn collaboration_modes_defaults_to_code_on_startup() {
53235323
assert_eq!(chat.current_model(), resolved_model);
53245324
}
53255325

5326-
#[tokio::test]
5327-
async fn experimental_mode_plan_is_ignored_on_startup() {
5328-
let codex_home = tempdir().expect("tempdir");
5329-
let cfg = ConfigBuilder::default()
5330-
.codex_home(codex_home.path().to_path_buf())
5331-
.cli_overrides(vec![
5332-
(
5333-
"features.collaboration_modes".to_string(),
5334-
TomlValue::Boolean(true),
5335-
),
5336-
(
5337-
"tui.experimental_mode".to_string(),
5338-
TomlValue::String("plan".to_string()),
5339-
),
5340-
])
5341-
.build()
5342-
.await
5343-
.expect("config");
5344-
let resolved_model = codex_core::test_support::get_model_offline(cfg.model.as_deref());
5345-
let otel_manager = test_otel_manager(&cfg, resolved_model.as_str());
5346-
let thread_manager = Arc::new(
5347-
codex_core::test_support::thread_manager_with_models_provider(
5348-
CodexAuth::from_api_key("test"),
5349-
cfg.model_provider.clone(),
5350-
),
5351-
);
5352-
let auth_manager =
5353-
codex_core::test_support::auth_manager_from_auth(CodexAuth::from_api_key("test"));
5354-
let init = ChatWidgetInit {
5355-
config: cfg,
5356-
frame_requester: FrameRequester::test_dummy(),
5357-
app_event_tx: AppEventSender::new(unbounded_channel::<AppEvent>().0),
5358-
initial_user_message: None,
5359-
enhanced_keys_supported: false,
5360-
auth_manager,
5361-
models_manager: thread_manager.get_models_manager(),
5362-
feedback: codex_feedback::CodexFeedback::new(),
5363-
is_first_run: true,
5364-
feedback_audience: FeedbackAudience::External,
5365-
model: Some(resolved_model.clone()),
5366-
startup_tooltip_override: None,
5367-
status_line_invalid_items_warned: Arc::new(AtomicBool::new(false)),
5368-
otel_manager,
5369-
};
5370-
5371-
let chat = ChatWidget::new(init, thread_manager);
5372-
assert_eq!(chat.active_collaboration_mode_kind(), ModeKind::Default);
5373-
assert_eq!(chat.current_model(), resolved_model);
5374-
}
5375-
53765326
#[tokio::test]
53775327
async fn set_model_updates_active_collaboration_mask() {
53785328
let (mut chat, _rx, _op_rx) = make_chatwidget_manual(Some("gpt-5.1")).await;

0 commit comments

Comments
 (0)