Error on blocking request

This commit is contained in:
Charles Cunningham
2026-01-25 22:44:59 -08:00
parent 22f47b3285
commit 61e5efc502

View File

@@ -1374,6 +1374,20 @@ impl CodexMessageProcessor {
});
break AgentStatus::Errored(message);
}
EventMsg::ExecApprovalRequest(_)
| EventMsg::ApplyPatchApprovalRequest(_)
| EventMsg::RequestUserInput(_)
| EventMsg::ElicitationRequest(_) => {
// `exec/run` has no interactive channel; fail fast instead of hanging.
let message =
"exec/run encountered a blocking approval or input request".to_string();
error = Some(TurnError {
message: message.clone(),
codex_error_info: None,
additional_details: None,
});
break AgentStatus::Errored(message);
}
_ => {}
}
};