Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: show which file and why knowledge directory sync failed - #29507

Merged
tjbck merged 1 commit into
open-webui:devfrom
Classic298:fix-knowledge-directory-sync-error-detail
Sep 12, 2026
Merged

fix: show which file and why knowledge directory sync failed#29507
tjbck merged 1 commit into
open-webui:devfrom
Classic298:fix-knowledge-directory-sync-error-detail

Conversation

@Classic298

Copy link
Copy Markdown
Member

Syncing a knowledge base from a local directory only ever showed a generic "Error accessing directory" toast when a per-file read failed, and production builds strip console.error, so nothing else recorded the cause either. On Windows this hides a real Chromium bug where files with very long absolute paths throw a NotFoundError from the File System Access API, leaving no way to tell which file failed or why.

Both per-file read paths (the directory picker and drag-and-drop) now wrap read failures with the file's relative path and the underlying browser error before they reach the toast, so the message actually names the file and the reason. Reuses the existing translated toast text instead of adding a new i18n key, so the fix doesn't orphan existing translations of that string.

Contributor License Agreement

Syncing a knowledge base from a local directory only ever showed a
generic "Error accessing directory" toast when a per-file read
failed, and production builds strip console.error, so nothing else
recorded the cause either. On Windows this hides a real Chromium bug
where files with very long absolute paths throw a NotFoundError from
the File System Access API, leaving no way to tell which file failed
or why.

Both per-file read paths (the directory picker and drag-and-drop) now
wrap read failures with the file's relative path and the underlying
browser error before they reach the toast, so the message actually
names the file and the reason. Reuses the existing translated toast
text instead of adding a new i18n key, so the fix doesn't orphan
existing translations of that string.
@tjbck
tjbck merged commit ca8f151 into open-webui:dev Sep 12, 2026
2 checks passed
@Classic298
Classic298 deleted the fix-knowledge-directory-sync-error-detail branch September 12, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants