From 76533b0c20519254413eab64e52587f19201d5aa Mon Sep 17 00:00:00 2001 From: damocles Date: Mon, 25 May 2026 21:47:40 +0200 Subject: [PATCH] turn: simplify run_turn match arms --- hive-ag3nt/src/turn.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hive-ag3nt/src/turn.rs b/hive-ag3nt/src/turn.rs index d0297832..8e5ceda0 100644 --- a/hive-ag3nt/src/turn.rs +++ b/hive-ag3nt/src/turn.rs @@ -491,9 +491,9 @@ pub async fn wait_for_login( /// doesn't stall mid-turn — hyperhive owns compaction. pub async fn run_turn(prompt: &str, files: &TurnFiles, bus: &Bus) -> TurnOutcome { match run_claude(prompt, files, bus).await { - Ok((too_long, _, _)) if too_long => TurnOutcome::PromptTooLong, - Ok((_, rate_limited, _)) if rate_limited => TurnOutcome::RateLimited, - Ok((_, _, auth_failed)) if auth_failed => TurnOutcome::AuthFailed, + Ok((true, _, _)) => TurnOutcome::PromptTooLong, + Ok((_, true, _)) => TurnOutcome::RateLimited, + Ok((_, _, true)) => TurnOutcome::AuthFailed, Ok(_) => TurnOutcome::Ok, Err(e) => TurnOutcome::Failed(e), }