Prevent provider follow-up setup panics

This commit is contained in:
Ryan Ward
2026-08-19 11:11:28 -05:00
parent 87080c8086
commit 11c466c26d
2 changed files with 96 additions and 29 deletions
+1 -1
View File
@@ -601,10 +601,10 @@ impl ProviderRun {
}
}
ProviderRunState::AwaitingTools { batch } => {
self.validate_post_model_phase()?;
if batch.calls.is_empty() {
return Err(invalid("pending tool batch is empty".to_string()));
}
self.validate_post_model_phase()?;
let mut call_ids = HashSet::new();
for pending in &batch.calls {
if pending.call.id.is_empty() {