2
0

fix(headless): handle missing review preset gracefully instead of unwrap

This commit is contained in:
2026-03-24 15:34:44 +09:00
parent fa4ed67de2
commit 09cc064f03

View File

@@ -149,7 +149,10 @@ pub fn run(config_or_task: &str, cwd_override: Option<&str>, name_override: Opti
/// Review changes, auto-commit if no issues found.
pub fn review() {
let configs = config::preset("review").unwrap();
let configs = match config::preset("review") {
Some(c) => c,
None => { eprintln!("preset 'review' not found"); return; }
};
match execute_once(configs) {
Ok(()) => {
// Check if decision says "no issues" / "問題なし" / "コミット可能"