yield_to_user ends turn

This commit is contained in:
Kent Overstreet 2026-04-09 16:47:49 -04:00
parent 0af97774f4
commit 8a2f488d22

View file

@ -418,7 +418,9 @@ impl Agent {
} }
} }
Agent::apply_tool_results(&agent, results, &mut ds).await; Agent::apply_tool_results(&agent, results, &mut ds).await;
continue; if !agent.state.lock().await.pending_yield {
continue;
}
} }
// Text-only response — extract text and return // Text-only response — extract text and return