Remove TUI legacy core test_support dependencies (#27484)

## Why

The TUI now sits on the app-server layer, but
`app-server-client::legacy_core` still exposed core test helpers solely
for TUI tests. We've been whittling away the remaining dependencies.
This is the next step on that journey.

There is no functional change — just a refactor, and this affects only
test code, so it should be low risk.

## What changed

- remove the `legacy_core::test_support` re-export and call
model-manager test helpers directly
- keep the bundled model-preset cache local to TUI test support
- import constraint types directly from `codex-config`
This commit is contained in:
Eric Traut authored and GitHub committed 2026-06-10 17:55:49 -07:00
1 parent 1a9efd473b
commit 36fc79c6f4
13 files changed
+73 -51

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ use pretty_assertions::assert_eq;
use tokio::sync::mpsc::unbounded_channel;
fn all_model_presets() -> Vec<ModelPreset> {
crate::legacy_core::test_support::all_model_presets().clone()
crate::test_support::TEST_MODEL_PRESETS.clone()
}
fn model_availability_nux_config(shown_count: &[(&str, u32)]) -> ModelAvailabilityNuxConfig {