{"record":{"id":"0ee4c00a9794cb85","repo":"openai/codex","slug":"specify-uncommitted-base-commit-or-provid","errorCode":null,"errorMessage":"Specify --uncommitted, --base, --commit, or provide custom review instructions","messagePattern":"Specify --uncommitted, --base, --commit, or provide custom review instructions","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/exec/src/lib.rs","lineNumber":2142,"sourceCode":"    let target = if args.uncommitted {\n        ReviewTarget::UncommittedChanges\n    } else if let Some(branch) = args.base.clone() {\n        ReviewTarget::BaseBranch { branch }\n    } else if let Some(sha) = args.commit.clone() {\n        ReviewTarget::Commit {\n            sha,\n            title: args.commit_title.clone(),\n        }\n    } else if let Some(prompt_arg) = args.prompt.clone() {\n        let prompt = resolve_prompt(Some(prompt_arg)).trim().to_string();\n        if prompt.is_empty() {\n            anyhow::bail!(\"Review prompt cannot be empty\");\n        }\n        ReviewTarget::Custom {\n            instructions: prompt,\n        }\n    } else {\n        anyhow::bail!(\n            \"Specify --uncommitted, --base, --commit, or provide custom review instructions\"\n        );\n    };\n\n    Ok(ReviewRequest {\n        target,\n        user_facing_hint: None,\n    })\n}\n\n#[cfg(test)]\n#[path = \"lib_tests.rs\"]\nmod tests;\n","sourceCodeStart":2124,"sourceCodeEnd":2156,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/exec/src/lib.rs#L2124-L2156","documentation":"Bailed by build_review_request when none of --uncommitted, --base, --commit, or a custom --prompt was supplied. There is no review target to construct, so the review request is rejected as underspecified rather than defaulting to something unintended.","triggerScenarios":"Thrown at codex-rs/exec/src/lib.rs:2142 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass --uncommitted, --base, --commit, or custom review instructions."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}