{"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":"Error \"Specify --uncommitted, --base, --commit, or provide custom review instructions\" thrown in openai/codex.","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":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"}