diff --git a/codex-rs/Cargo.lock b/codex-rs/Cargo.lock index d57309d227..42eb1c6eaa 100644 --- a/codex-rs/Cargo.lock +++ b/codex-rs/Cargo.lock @@ -1635,7 +1635,7 @@ dependencies = [ "codex-state", "codex-stdio-to-uds", "codex-terminal-detection", - "codex-tui-app-server", + "codex-tui", "codex-utils-cargo-bin", "codex-utils-cli", "codex-windows-sandbox", @@ -1722,7 +1722,7 @@ dependencies = [ "codex-core", "codex-git-utils", "codex-login", - "codex-tui-app-server", + "codex-tui", "codex-utils-cli", "crossterm", "owo-colors", diff --git a/codex-rs/cli/Cargo.toml b/codex-rs/cli/Cargo.toml index 6788d5f9e7..1b9927d4d2 100644 --- a/codex-rs/cli/Cargo.toml +++ b/codex-rs/cli/Cargo.toml @@ -40,7 +40,7 @@ codex-sandboxing = { workspace = true } codex-state = { workspace = true } codex-stdio-to-uds = { workspace = true } codex-terminal-detection = { workspace = true } -codex-tui = { workspace = true } +codex_tui = { package = "codex-tui", path = "../tui_app_server" } libc = { workspace = true } owo-colors = { workspace = true } regex-lite = { workspace = true } diff --git a/codex-rs/cloud-tasks/Cargo.toml b/codex-rs/cloud-tasks/Cargo.toml index 7587b341b9..ad65707de0 100644 --- a/codex-rs/cloud-tasks/Cargo.toml +++ b/codex-rs/cloud-tasks/Cargo.toml @@ -24,7 +24,7 @@ codex-client = { workspace = true } codex-core = { path = "../core" } codex-git-utils = { workspace = true } codex-login = { path = "../login" } -codex-tui = { workspace = true } +codex_tui = { package = "codex-tui", path = "../tui_app_server" } codex-utils-cli = { workspace = true } crossterm = { workspace = true, features = ["event-stream"] } ratatui = { workspace = true } diff --git a/codex-rs/tui_app_server/Cargo.toml b/codex-rs/tui_app_server/Cargo.toml index 59eade0f1e..9e98cee6d1 100644 --- a/codex-rs/tui_app_server/Cargo.toml +++ b/codex-rs/tui_app_server/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "codex-tui-app-server" +name = "codex-tui" version.workspace = true edition.workspace = true license.workspace = true diff --git a/codex-rs/tui_app_server/src/bin/codex-tui.rs b/codex-rs/tui_app_server/src/bin/codex-tui.rs index ae61111437..8ecb67c579 100644 --- a/codex-rs/tui_app_server/src/bin/codex-tui.rs +++ b/codex-rs/tui_app_server/src/bin/codex-tui.rs @@ -1,3 +1,6 @@ +//! Compatibility binary that preserves the `codex-tui` entrypoint while the crate +//! directory and package name remain `tui_app_server` for now. + use clap::Parser; use codex_arg0::Arg0DispatchPaths; use codex_arg0::arg0_dispatch_or_else; diff --git a/codex-rs/tui_app_server/src/chatwidget/tests.rs b/codex-rs/tui_app_server/src/chatwidget/tests.rs index b1813c5b3c..2e109b7e77 100644 --- a/codex-rs/tui_app_server/src/chatwidget/tests.rs +++ b/codex-rs/tui_app_server/src/chatwidget/tests.rs @@ -75,7 +75,6 @@ use codex_core::config_loader::AppsRequirementsToml; use codex_core::config_loader::ConfigLayerStack; use codex_core::config_loader::ConfigRequirements; use codex_core::config_loader::ConfigRequirementsToml; -use codex_core::config_loader::LoaderOverrides; use codex_core::config_loader::RequirementSource; use codex_core::models_manager::collaboration_mode_presets::CollaborationModesConfig; use codex_core::plugins::OPENAI_CURATED_MARKETPLACE_NAME; @@ -190,15 +189,8 @@ use toml::Value as TomlValue; async fn test_config() -> Config { // Use base defaults to avoid depending on host state. - let codex_home = std::env::temp_dir(); ConfigBuilder::default() - .codex_home(codex_home.clone()) - .loader_overrides(LoaderOverrides { - managed_config_path: Some(codex_home.join("chatwidget-test-managed-config.toml")), - #[cfg(target_os = "macos")] - managed_preferences_base64: Some(String::new()), - macos_managed_config_requirements_base64: Some(String::new()), - }) + .codex_home(std::env::temp_dir()) .build() .await .expect("config") diff --git a/codex-rs/tui_app_server/tests/suite/model_availability_nux.rs b/codex-rs/tui_app_server/tests/suite/model_availability_nux.rs index 58d23b915b..bcbb3f0e2c 100644 --- a/codex-rs/tui_app_server/tests/suite/model_availability_nux.rs +++ b/codex-rs/tui_app_server/tests/suite/model_availability_nux.rs @@ -10,7 +10,7 @@ use tokio::time::sleep; use tokio::time::timeout; #[tokio::test] -async fn resume_startup_ignores_deprecated_tui_app_server_disable_flag() -> Result<()> { +async fn resume_startup_does_not_consume_model_availability_nux_count() -> Result<()> { // run_codex_cli() does not work on Windows due to PTY limitations. if cfg!(windows) { return Ok(()); @@ -112,8 +112,6 @@ trust_level = "trusted" "resume".to_string(), "--last".to_string(), "--no-alt-screen".to_string(), - "--disable".to_string(), - "tui_app_server".to_string(), "-C".to_string(), repo_root.display().to_string(), "-c".to_string(), diff --git a/scripts/run_tui_with_exec_server.sh b/scripts/run_tui_with_exec_server.sh index 8f2fa80131..669cdee592 100755 --- a/scripts/run_tui_with_exec_server.sh +++ b/scripts/run_tui_with_exec_server.sh @@ -58,4 +58,4 @@ export CODEX_EXEC_SERVER_URL="$exec_server_url" echo "Starting codex-tui with CODEX_EXEC_SERVER_URL=$CODEX_EXEC_SERVER_URL" >&2 cd "$cargo_root" -cargo run -p codex-tui --bin codex-tui -- -c features.tui_app_server=true -c mcp_oauth_credentials_store=file "$@" +cargo run -p codex-tui --bin codex-tui -- -c mcp_oauth_credentials_store=file "$@"