From f387041aca1924d6398e36f2b6f56ec0a3583d06 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Tue, 7 Apr 2026 03:50:57 -0400 Subject: [PATCH] Replace unreachable!() with proper error in retry loop Co-Authored-By: Proof of Concept --- src/agent/oneshot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/oneshot.rs b/src/agent/oneshot.rs index 442512d..fb34060 100644 --- a/src/agent/oneshot.rs +++ b/src/agent/oneshot.rs @@ -314,7 +314,7 @@ impl AutoAgent { } } } - unreachable!() + Err(format!("{}: all retry attempts exhausted", name)) } async fn dispatch_tools(&mut self, backend: &mut Backend, msg: &Message) {