mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/24889
Author: @paulxg12
Created: 5/18/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (1)
312693afix: prevent orphaned knowledge files by ensuring atomic upload-process-link chain (#24807)📊 Changes
1 file changed (+37 additions, -13 deletions)
View changed files
📝
backend/open_webui/routers/knowledge.py(+37 -13)📄 Description
Closes #24807
Root cause: Knowledge upload pipeline did linking AFTER processing. If user navigated away during the slow embedding step, files were orphaned in the vector DB with no relational record.
Fix: Reversed order — link FIRST (fast), process SECOND (slow). Rollback link on processing failure. Applies to both single-file and batch endpoints.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.