mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
codex: fix CI failure on PR #13777
Collapse the interrupt resend guard in multi_agents.rs so clippy accepts the branch without changing behavior. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -280,18 +280,17 @@ mod send_input {
|
||||
} else {
|
||||
None
|
||||
};
|
||||
if args.interrupt {
|
||||
if let Err(err) = session
|
||||
if args.interrupt
|
||||
&& let Err(err) = session
|
||||
.services
|
||||
.agent_control
|
||||
.interrupt_agent(receiver_thread_id)
|
||||
.await
|
||||
{
|
||||
if let Some(follow_up) = interrupt_follow_up.as_mut() {
|
||||
follow_up.cancel();
|
||||
}
|
||||
return Err(collab_agent_error(receiver_thread_id, err));
|
||||
{
|
||||
if let Some(follow_up) = interrupt_follow_up.as_mut() {
|
||||
follow_up.cancel();
|
||||
}
|
||||
return Err(collab_agent_error(receiver_thread_id, err));
|
||||
}
|
||||
session
|
||||
.send_event(
|
||||
|
||||
Reference in New Issue
Block a user