Disable CLI ChatGPT apply product

This commit is contained in:
Meta Vens 2026-05-13 15:19:34 +01:00
commit c0d92cb8f8
6 changed files with 18 additions and 30 deletions

View file

@ -5,8 +5,6 @@ use clap_complete::Shell;
use clap_complete::generate;
use codex_arg0::Arg0DispatchPaths;
use codex_arg0::arg0_dispatch_or_else;
use codex_chatgpt::apply_command::ApplyCommand;
use codex_chatgpt::apply_command::run_apply_command;
use codex_cli::LandlockCommand;
use codex_cli::SeatbeltCommand;
use codex_cli::WindowsCommand;
@ -98,6 +96,12 @@ struct MultitoolCli {
subcommand: Option<Subcommand>,
}
#[derive(Debug, Args)]
struct ApplyCommand {
#[clap(flatten)]
config_overrides: CliConfigOverrides,
}
#[derive(Debug, clap::Subcommand)]
enum Subcommand {
/// Run Codex non-interactively.
@ -1067,7 +1071,9 @@ async fn cli_main(arg0_paths: Arg0DispatchPaths) -> anyhow::Result<()> {
&mut apply_cli.config_overrides,
root_config_overrides.clone(),
);
run_apply_command(apply_cli, /*cwd*/ None).await?;
anyhow::bail!(
"ChatGPT apply commands are disabled in Epiphany; the Codex organ is limited to auth/model routing."
);
}
Some(Subcommand::ResponsesApiProxy(args)) => {
reject_remote_mode_for_subcommand(