openai/codex · error
`--remote {remote}` is only supported for interactive TUI co
Error message
`--remote {remote}` is only supported for interactive TUI commands, not `codex {subcommand}` What it means
Error "`--remote {remote}` is only supported for interactive TUI commands, not `codex {subcommand}`" thrown in openai/codex.
Source
Thrown at codex-rs/cli/src/main.rs:2371
Ok(())
}
/// Prepend root-level overrides so they have lower precedence than
/// CLI-specific ones specified after the subcommand (if any).
fn prepend_config_flags(
subcommand_config_overrides: &mut CliConfigOverrides,
cli_config_overrides: CliConfigOverrides,
) {
subcommand_config_overrides.prepend_root_overrides(cli_config_overrides);
}
fn reject_remote_mode_for_subcommand(
remote: Option<&str>,
remote_auth_token_env: Option<&str>,
subcommand: &str,
) -> anyhow::Result<()> {
if let Some(remote) = remote {
anyhow::bail!(
"`--remote {remote}` is only supported for interactive TUI commands, not `codex {subcommand}`"
);
}
if remote_auth_token_env.is_some() {
anyhow::bail!(
"`--remote-auth-token-env` is only supported for interactive TUI commands, not `codex {subcommand}`"
);
}
Ok(())
}
fn reject_root_strict_config_for_subcommand(
strict_config: bool,
subcommand: &Option<Subcommand>,
) -> anyhow::Result<()> {
if !strict_config {
return Ok(());
}View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/cli/src/main.rs:2371 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/22799795f63cbe68.
Report an issue: GitHub.