fix: harden early tool call dispatch

This commit is contained in:
2026-09-29 12:00:36 +09:00
parent cc2f8b3422
commit dcf14ef565
13 changed files with 1481 additions and 161 deletions
+4
View File
@@ -363,6 +363,10 @@ impl WorkerInterceptor {
#[async_trait]
impl Interceptor<SessionHistoryMetadata> for WorkerInterceptor {
fn supports_early_tool_dispatch(&self) -> bool {
self.registry.on_turn_end.is_empty()
}
async fn on_prompt_submit(
&self,
context: PromptSubmitContext<'_, SessionHistoryMetadata>,
+3
View File
@@ -1371,6 +1371,9 @@ mod tests {
call_id: format!("call-{index}"),
name: name.to_string(),
arguments: "{}".to_string(),
call_index: None,
execution_id: None,
status: None,
},
),
});