{"record":{"id":"22799795f63cbe68","repo":"openai/codex","slug":"remote-remote-is-only-supported-for-interact","errorCode":null,"errorMessage":"`--remote {remote}` is only supported for interactive TUI commands, not `codex {subcommand}`","messagePattern":"`--remote (.+?)` is only supported for interactive TUI commands, not `codex (.+?)`","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/cli/src/main.rs","lineNumber":2371,"sourceCode":"    Ok(())\n}\n\n/// Prepend root-level overrides so they have lower precedence than\n/// CLI-specific ones specified after the subcommand (if any).\nfn prepend_config_flags(\n    subcommand_config_overrides: &mut CliConfigOverrides,\n    cli_config_overrides: CliConfigOverrides,\n) {\n    subcommand_config_overrides.prepend_root_overrides(cli_config_overrides);\n}\n\nfn reject_remote_mode_for_subcommand(\n    remote: Option<&str>,\n    remote_auth_token_env: Option<&str>,\n    subcommand: &str,\n) -> anyhow::Result<()> {\n    if let Some(remote) = remote {\n        anyhow::bail!(\n            \"`--remote {remote}` is only supported for interactive TUI commands, not `codex {subcommand}`\"\n        );\n    }\n    if remote_auth_token_env.is_some() {\n        anyhow::bail!(\n            \"`--remote-auth-token-env` is only supported for interactive TUI commands, not `codex {subcommand}`\"\n        );\n    }\n    Ok(())\n}\n\nfn reject_root_strict_config_for_subcommand(\n    strict_config: bool,\n    subcommand: &Option<Subcommand>,\n) -> anyhow::Result<()> {\n    if !strict_config {\n        return Ok(());\n    }","sourceCodeStart":2353,"sourceCodeEnd":2389,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/cli/src/main.rs#L2353-L2389","documentation":"Error \"`--remote {remote}` is only supported for interactive TUI commands, not `codex {subcommand}`\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/cli/src/main.rs:2371 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}