mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-20 00:11:27 +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.
|
||
|---|---|---|
| .. | ||
| data | ||
| internal | ||
| migrations | ||
| models | ||
| retrieval | ||
| routers | ||
| socket | ||
| static | ||
| storage | ||
| test | ||
| tools | ||
| utils | ||
| __init__.py | ||
| alembic.ini | ||
| config.py | ||
| constants.py | ||
| env.py | ||
| functions.py | ||
| main.py | ||
| tasks.py | ||