[GH-ISSUE #24910] issue: Imported grouped chats are marked as successful but folders are not created and imported chats are not visible in the chat list #123740

Open
opened 2026-05-21 03:13:31 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @navidbakhtiary on GitHub (May 19, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24910

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

v0.9.5

Ollama Version (if applicable)

No response

Operating System

Ubuntu 24

Browser (if applicable)

Chrome latest

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

When importing grouped chat data from ChatGPTExport, Open WebUI should either:

  1. Create the missing folders/projects automatically from the imported data, or
  2. Import the chats without folders and show them in the normal chat list, or
  3. Clearly warn the user that folder creation/import is not supported and that folder_id must already exist in the Open WebUI database.

The import should not report success if the imported chats cannot be accessed from the UI.

Actual Behavior

Open WebUI shows that the import was successful, and the chat records are inserted into the database.

However, the imported chats do not appear in the UI.

I first imported chats with folder_id values coming from ChatGPT export fields such as conversation_template_id, for example:

g-p-67f4e19557c8819190bc18d6a7ec5cbe
g-p-67f61af3f2a48191bfe36db336df5c78

These records existed in the chat table and were not archived:

archived = 0
user_id = correct user id
folder_id = ChatGPT project/template id

But Open WebUI did not create matching folders in the folder table.

After changing the converter script to set:

"folder_id": null

the chats are imported with folder_id = NULL, but they appear in the chat list as individual chats and not in a folder.

Steps to Reproduce

Export conversations from ChatGPT.
Convert/group the conversations into Open WebUI import format by python scripts.
Import the generated JSON file through:

Settings → Data Controls → Import Chats

Open WebUI reports that the import was successful.
Check the SQLite database:

sudo sqlite3 /var/lib/docker/volumes/openwebui-data/_data/webui.db ".schema chat"

The chat table contains:

folder_id TEXT

Query latest imported chats:

sudo sqlite3 -header -column /var/lib/docker/volumes/openwebui-data/_data/webui.db \
"SELECT
    id,
    user_id,
    title,
    archived,
    pinned,
    folder_id,
    created_at,
    updated_at
FROM chat
ORDER BY created_at DESC
LIMIT 50;"

The imported records exist and have archived = 0, but they are not visible in the Open WebUI sidebar/chat list.

Check folders:

sudo sqlite3 -header -column /var/lib/docker/volumes/openwebui-data/_data/webui.db \
"SELECT id, user_id, name, parent_id, created_at, updated_at
FROM folder
ORDER BY created_at DESC;"

No folders are automatically created for the imported grouped chats.

Logs & Screenshots

Database schema:

CREATE TABLE IF NOT EXISTS "chat" (
    "id" VARCHAR(255) NOT NULL,
    "user_id" VARCHAR(255) NOT NULL,
    "title" TEXT NOT NULL NOT NULL,
    "share_id" VARCHAR(255),
    "archived" INTEGER NOT NULL,
    "created_at" DATETIME NOT NULL NOT NULL,
    "updated_at" DATETIME NOT NULL NOT NULL,
    chat JSON,
    pinned BOOLEAN,
    meta JSON DEFAULT '{}' NOT NULL,
    folder_id TEXT,
    tasks JSON,
    summary TEXT,
    last_read_at BIGINT
);

Folder schema:

CREATE TABLE IF NOT EXISTS "folder" (
    id TEXT NOT NULL,
    parent_id TEXT,
    user_id TEXT NOT NULL,
    name TEXT NOT NULL,
    items JSON,
    meta JSON,
    is_expanded BOOLEAN NOT NULL,
    created_at BIGINT NOT NULL,
    updated_at BIGINT NOT NULL,
    data JSON,
    PRIMARY KEY (id, user_id)
);

Example imported records:

title                         archived  pinned  folder_id
Pre-build Check and Formatting 0         0       g-p-67f4e19557c8819190bc18d6a7ec5cbe
Backend Geometry Conversion    0         0       g-p-67f4e19557c8819190bc18d6a7ec5cbe
German text correction         0         0       g-p-67f61af3f2a48191bfe36db336df5c78

The records exist in the database, but are not shown in the UI.

Additional Information

No response

Originally created by @navidbakhtiary on GitHub (May 19, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/24910 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version v0.9.5 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 24 ### Browser (if applicable) Chrome latest ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior When importing grouped chat data from ChatGPTExport, Open WebUI should either: 1. Create the missing folders/projects automatically from the imported data, or 2. Import the chats without folders and show them in the normal chat list, or 3. Clearly warn the user that folder creation/import is not supported and that `folder_id` must already exist in the Open WebUI database. The import should not report success if the imported chats cannot be accessed from the UI. ### Actual Behavior Open WebUI shows that the import was successful, and the chat records are inserted into the database. However, the imported chats do not appear in the UI. I first imported chats with `folder_id` values coming from ChatGPT export fields such as `conversation_template_id`, for example: ```text g-p-67f4e19557c8819190bc18d6a7ec5cbe g-p-67f61af3f2a48191bfe36db336df5c78 ``` These records existed in the chat table and were not archived: ```text archived = 0 user_id = correct user id folder_id = ChatGPT project/template id ``` But Open WebUI did not create matching folders in the folder table. After changing the converter script to set: ```text "folder_id": null ``` the chats are imported with folder_id = NULL, but they appear in the chat list as individual chats and not in a folder. ### Steps to Reproduce Export conversations from ChatGPT. Convert/group the conversations into Open WebUI import format by python scripts. Import the generated JSON file through: ```text Settings → Data Controls → Import Chats ``` Open WebUI reports that the import was successful. Check the SQLite database: ```bash sudo sqlite3 /var/lib/docker/volumes/openwebui-data/_data/webui.db ".schema chat" ``` The chat table contains: ```text folder_id TEXT ``` Query latest imported chats: ```sql sudo sqlite3 -header -column /var/lib/docker/volumes/openwebui-data/_data/webui.db \ "SELECT id, user_id, title, archived, pinned, folder_id, created_at, updated_at FROM chat ORDER BY created_at DESC LIMIT 50;" ``` The imported records exist and have archived = 0, but they are not visible in the Open WebUI sidebar/chat list. Check folders: ```sql sudo sqlite3 -header -column /var/lib/docker/volumes/openwebui-data/_data/webui.db \ "SELECT id, user_id, name, parent_id, created_at, updated_at FROM folder ORDER BY created_at DESC;" ``` No folders are automatically created for the imported grouped chats. ### Logs & Screenshots Database schema: ``` CREATE TABLE IF NOT EXISTS "chat" ( "id" VARCHAR(255) NOT NULL, "user_id" VARCHAR(255) NOT NULL, "title" TEXT NOT NULL NOT NULL, "share_id" VARCHAR(255), "archived" INTEGER NOT NULL, "created_at" DATETIME NOT NULL NOT NULL, "updated_at" DATETIME NOT NULL NOT NULL, chat JSON, pinned BOOLEAN, meta JSON DEFAULT '{}' NOT NULL, folder_id TEXT, tasks JSON, summary TEXT, last_read_at BIGINT ); ``` Folder schema: ``` CREATE TABLE IF NOT EXISTS "folder" ( id TEXT NOT NULL, parent_id TEXT, user_id TEXT NOT NULL, name TEXT NOT NULL, items JSON, meta JSON, is_expanded BOOLEAN NOT NULL, created_at BIGINT NOT NULL, updated_at BIGINT NOT NULL, data JSON, PRIMARY KEY (id, user_id) ); ``` Example imported records: ``` title archived pinned folder_id Pre-build Check and Formatting 0 0 g-p-67f4e19557c8819190bc18d6a7ec5cbe Backend Geometry Conversion 0 0 g-p-67f4e19557c8819190bc18d6a7ec5cbe German text correction 0 0 g-p-67f61af3f2a48191bfe36db336df5c78 ``` The records exist in the database, but are not shown in the UI. ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-21 03:13:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#123740