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:
Gabriel Cohen
2026-03-06 10:49:48 -08:00
parent a2848e1689
commit 41ad46665a

View File

@@ -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(