mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-16 23:43:03 +00:00
- Added message-in-chat binding check alongside the existing chat-
ownership check. Both use the same already-fetched chat object, so
this is still one DB round-trip. Defense-in-depth for the case
where a client supplies one of its own chat_ids but a different
chat's message_id — the user-scoped key would still serve the
request otherwise.
- requestResumeForMessage now early-returns if a fence already
exists for the same message. Fixes two operational concerns:
* Mixed-version deployments where an older backend doesn't echo
request_id: previously every reconnect reset the fence timer
AND set a new request_id, so no reply could ever match; now
the first fence runs to completion or timeout and only
subsequent requests after that get a fresh chance.
* Rapid reconnect churn: used to kick the timer forward
indefinitely, now one fence per message lifecycle.
|
||
|---|---|---|
| .. | ||
| main.py | ||
| utils.py | ||