diff --git a/changelog/4006.fixed.md b/changelog/4006.fixed.md new file mode 100644 index 000000000..ba12beea7 --- /dev/null +++ b/changelog/4006.fixed.md @@ -0,0 +1 @@ +- Fixed a race condition where `EndTaskFrame` could cause the pipeline to shut down before in-flight frames (e.g. LLM function call responses) finished processing. `EndTaskFrame` and `StopTaskFrame` now flow through the pipeline as `ControlFrame`s, ensuring all pending work is flushed before shutdown begins. `CancelTaskFrame` and `InterruptionTaskFrame` remain immediate (`SystemFrame`).