mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-30 17:25:30 -05:00
[GH-ISSUE #18530] issue: Pipeline events not raised when new chat is created and quickly closed/switched to another chat #34154
Reference in New Issue
Block a user
Originally created by @YetheSamartaka on GitHub (Oct 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18530
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.34
Ollama Version (if applicable)
No response
Operating System
Debian 12
Browser (if applicable)
All
Confirmation
README.md.Expected Behavior
Events for pipelines will be activated regardless if the chat was closed before finishing in the background or not.
Actual Behavior
When you open a new chat, put a prompt, send it and open a new chat or close the bar in your browser, events for pipelines are not finished. This can result to incomplete data trace for Langfuse where even tho the chat finishes, those pipelines are reliant on front end parts. This is very wrong and needs to be fixed.
Steps to Reproduce
Logs & Screenshots
Additional Information
Langfuse 3.121
Pipelines latest version where this commit is the last: https://github.com/open-webui/pipelines/commit/039f9c54f8e9f9bcbabde02c2c853e80d25c79e4
@tjbck commented on GitHub (Oct 23, 2025):
For an accurate "tracking" Functions should be used.
@YetheSamartaka commented on GitHub (Oct 24, 2025):
Then why are "innacurate" pipelines a thing? Should it be discontinued or marked with some warning?
@YetheSamartaka commented on GitHub (Oct 24, 2025):
@tjbck Today I converted the pipeline towards a function and it has the same issue. Otherwise my function is working 1:1 with the pipeline variant. Unfortunately issue will be somewhere else as this is affecting Functions as well.
This is a fundamental architectural limitation of these inlet/outlets - they're designed to run within the request/response lifecycle. When that lifecycle is interrupted by client disconnection, post-processing hooks don't execute. The issue affects all filters that rely on outlet hooks for cleanup, not just Langfuse. A proper fix would require Open WebUI to implement a more robust event system for filter lifecycle management that's decoupled from HTTP connections.
@YetheSamartaka commented on GitHub (Oct 27, 2025):
@tjbck I looked into that issue further and created a working fix PR:
https://github.com/open-webui/open-webui/pull/18654