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), }