Merge pull request #4501 from pipecat-ai/aleix/fix-filter-incomplete-tool-calls

Fix filter-incomplete + function-calling deadlock
This commit is contained in:
Aleix Conchillo Flaqué
2026-05-15 15:11:45 -07:00
committed by GitHub
5 changed files with 247 additions and 3 deletions

1
changelog/4501.fixed.md Normal file
View File

@@ -0,0 +1 @@
- Fixed bot hangs when `filter_incomplete_user_turns` was enabled and the LLM responded by calling a tool. The user turn never finalized, so the assistant aggregator gated the tool-result context push and the LLM continuation never ran. Tool calls now finalize the turn the moment they start, before the function dispatches.