Fix codex resume so flags (cd, model, search, etc.) still work (#3625)
Bug: now we can add flags/config values only before resume. `codex -m gpt-5 resume` works However, `codex resume -m gpt-5` should also work. This PR is following this [approach](https://stackoverflow.com/questions/76408952/rust-clap-re-use-same-arguments-in-different-subcommand) in doing so. I didn't convert those flags to global because we have `codex login` that shouldn't expect them.
This commit is contained in:
@@ -7,6 +7,7 @@ use std::path::PathBuf;
|
||||
#[command(version)]
|
||||
pub struct Cli {
|
||||
/// Optional user prompt to start the session.
|
||||
#[arg(value_name = "PROMPT")]
|
||||
pub prompt: Option<String>,
|
||||
|
||||
/// Optional image(s) to attach to the initial prompt.
|
||||
|
||||
Reference in New Issue
Block a user