mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
codex: address PR review feedback (#15922)
This commit is contained in:
Generated
+2
-2
@@ -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",
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "codex-tui-app-server"
|
||||
name = "codex-tui"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user