Ignore empty reasoning heartbeats

This commit is contained in:
Ryan Ward
2026-08-26 09:47:06 -05:00
parent 2022716f91
commit c25e823e56
3 changed files with 58 additions and 8 deletions
@@ -732,6 +732,13 @@ impl ProviderRunCoordinator {
return Ok(());
}
}
AgentEvent::ReasoningCompleted { text, signature }
if text.is_empty() && signature.is_none() =>
{
// Ignore provider heartbeat-shaped empty reasoning events. They are not
// meaningful model progress and must not keep an otherwise idle turn alive.
continue;
}
AgentEvent::ReasoningCompleted { text, signature } => {
if !self
.ensure_model_started_acknowledged(