mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
Error on blocking request
This commit is contained in:
@@ -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);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user