open-webui/backend/open_webui/socket
Claude 630f452e93
fix(stream): resume before mark-done, safe env parsing
- loadChat now calls requestResumeForAllInProgress BEFORE the
  interrupted-generation mark-done heuristic. That heuristic flips
  done=true when getTaskIdsByChatId returns empty/null, which includes
  API failures; previously that path would prevent resume from being
  attempted even when the stream was still alive server-side. Spurious
  resume requests cost one round trip and clear the fence via empty
  reply, so calling it unconditionally first is strictly safer.

- Env-var float parsing wrapped in a _float_env helper that falls back
  to default with a warning on invalid input instead of raising at
  import time. Previous code would ValueError out of the module and
  prevent socket service startup on operator typo.

Pushed back: bot flagged asyncio.Lock as unable to be stored in a
WeakValueDictionary. Verified directly on CPython — both weakref.ref
and WeakValueDictionary insertion work fine for asyncio.Lock. No
change needed.
2026-04-15 07:41:05 +00:00
..
main.py fix(stream): resume before mark-done, safe env parsing 2026-04-15 07:41:05 +00:00
utils.py refac 2026-03-22 05:48:05 -05:00