mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[PR #23531] [CLOSED] fix: handle ChatGPT exports containing folder/project metadata entries #42872
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/23531
Author: @lawrence3699
Created: 4/9/2026
Status: ❌ Closed
Base:
dev← Head:fix/chatgpt-import-folder-entries📝 Commits (1)
d260500fix: handle ChatGPT exports containing folder/project metadata entries📊 Changes
1 file changed (+8 additions, -1 deletions)
View changed files
📝
src/lib/utils/index.ts(+8 -1)📄 Description
Pull Request Checklist
devdevfix:Changelog Entry
Description
ChatGPT recently started including folder and project metadata entries in
conversations.jsonexports. These entries lack amappingkey. When a folder entry appeared first in the array,getImportOrigin()checked only_chats[0], misidentified the file aswebuiformat, andconvertOpenAIChats()was never called — resulting in "Imported 0 Chats".Fixed
getImportOrigin(): check if any item has amappingkey (via.some()), not just_chats[0]convertOpenAIChats(): skip entries withoutmappingbefore attempting conversion, so folder/project metadata doesn't cause failuresBefore
Importing a ChatGPT export that starts with a folder entry:
After
Same file imports correctly — folder/project entries are skipped, all conversations are imported.
Additional Information
{ "id": "...", "title": "My Folder", "type": "folder", ... }alongside conversation entries. These lack themappingkey that conversations have.maininstead ofdevand missing CLA.Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.