From a7edf37cb46b5fc4d50bd03df8e5999a86f602eb Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sat, 15 Aug 2026 10:52:52 +0000 Subject: [PATCH] Remove the TUI test dependency on `codex-cli` (#38746) ## What changed Remove the unused `codex-cli` dev-dependency and the no-op import that kept it visible to `cargo-shear`. TUI tests continue to locate spawned binaries through `codex-utils-cargo-bin`. GitOrigin-RevId: ba5855590c6f0300845170f15f39d77c0611a60a --- codex-rs/Cargo.lock | 1 - codex-rs/Cargo.toml | 1 - codex-rs/tui/Cargo.toml | 1 - codex-rs/tui/tests/all.rs | 3 --- 4 files changed, 6 deletions(-) diff --git a/codex-rs/Cargo.lock b/codex-rs/Cargo.lock index 28071ca8b9..8f4ac8ffea 100644 --- a/codex-rs/Cargo.lock +++ b/codex-rs/Cargo.lock @@ -4350,7 +4350,6 @@ dependencies = [ "codex-app-server-client", "codex-app-server-protocol", "codex-arg0", - "codex-cli", "codex-cloud-config", "codex-config", "codex-connectors", diff --git a/codex-rs/Cargo.toml b/codex-rs/Cargo.toml index 507d3c9d31..d796f62e05 100644 --- a/codex-rs/Cargo.toml +++ b/codex-rs/Cargo.toml @@ -167,7 +167,6 @@ codex-arg0 = { path = "arg0" } codex-async-utils = { path = "async-utils" } codex-backend-client = { path = "backend-client" } codex-chatgpt = { path = "chatgpt" } -codex-cli = { path = "cli" } codex-client = { path = "codex-client" } codex-collaboration-mode-templates = { path = "collaboration-mode-templates" } codex-cloud-config = { path = "cloud-config" } diff --git a/codex-rs/tui/Cargo.toml b/codex-rs/tui/Cargo.toml index ca037f7b95..2152c79151 100644 --- a/codex-rs/tui/Cargo.toml +++ b/codex-rs/tui/Cargo.toml @@ -149,7 +149,6 @@ arboard = { workspace = true } [dev-dependencies] app_test_support = { workspace = true } -codex-cli = { workspace = true } codex-mcp = { workspace = true } core_test_support = { workspace = true } codex-utils-cargo-bin = { workspace = true } diff --git a/codex-rs/tui/tests/all.rs b/codex-rs/tui/tests/all.rs index 83b528c912..0c24c24103 100644 --- a/codex-rs/tui/tests/all.rs +++ b/codex-rs/tui/tests/all.rs @@ -4,7 +4,4 @@ // The submodules live in `tests/suite/`. mod test_backend; -#[allow(unused_imports)] -use codex_cli as _; // Keep dev-dep for cargo-shear; tests spawn the codex binary. - mod suite;