open-webui/backend
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
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
open_webui fix(stream): resume before mark-done, safe env parsing 2026-04-15 07:41:05 +00:00
.dockerignore fix: litellm config issue 2024-02-24 22:35:11 -08:00
.gitignore refac 2024-09-06 04:59:20 +02:00
dev.sh refac 2026-03-24 19:43:30 -05:00
requirements-min.txt refac 2026-04-13 23:40:09 -05:00
requirements.txt refac 2026-04-13 23:40:09 -05:00
start.sh refac 2026-03-24 19:43:30 -05:00
start_windows.bat refac 2026-03-24 19:43:30 -05:00