[GH-ISSUE #15003] issue: Uncaught (in promise) TypeError: x.messages[U.parentId] is undefined browser console error from a chat bug #17439

Closed
opened 2026-04-19 23:11:46 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @silentoplayz on GitHub (Jun 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15003

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

v0.6.14

Ollama Version (if applicable)

v0.9.0

Operating System

Edition: Windows 11 Pro | Version: 24H2 | OS Build: 26100.4351 | Windows Feature Experience Pack: 1000.26100.107.0

Browser (if applicable)

LibreWolf v135.0.1-1 (Firefox)

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

  • A toast notification displaying Model not found should appear. (This DOES happen, which IS expected)
  • The Voice Mode headset icon for calling an LLM should NOT change into a Stop button, especially since there aren't any models selected in the model dropdown for inference.
  • Clicking on the Stop button in this scenario should revert the button back to the Voice Mode headset icon. Instead, an Uncaught (in promise) TypeError: x.messages[U.parentId] is undefined error is thrown in the browser console.

Actual Behavior

  • A toast notification displaying Model not found does appear.
  • The Voice Mode headset icon does change into the Stop button, as if it were generating a response, despite no model being selected in the model dropdown.
  • Uncaught (in promise) TypeError: x.messages[U.parentId] is undefined is thrown in the browser console.

Steps to Reproduce

Reproduction Method 1:

  1. Create a new custom model from a base Ollama model.
  2. Start a new chat with the new custom model you have created and send a query.
  3. After the model has finished producing a response, go back to the Models section of the workspace and delete the custom model you have created.
  4. Return back to the chat where the custom model was used before deletion. You should see Select a model at the top of the chat, rather than the model used in it.
  5. Edit the message you sent and remove all text. Send the message as a new message. Observe that this triggers the cascade of bugs reported in this issue.
  6. Click on the Stop button at the right hand side of the text input field.
  7. Open the browser console an observe the error.

Reproduction Method 2:

  1. Import the following chat into your Open WebUI instance from the Chats section of the settings menu.
    chat-export-1750033271698.json
  2. Return to reproduction method #1, but start from step 5.

Logs & Screenshots

Here is the browser console error that is thrown in LibreWolf browser after reproducing this bug:

Uncaught (in promise) TypeError: x.messages[U.parentId] is undefined
    tn Chat.svelte:1792
    xr MessageInput.svelte:1416
    D dom.js:361
    m MessageInput.svelte:1431
    m Tooltip.svelte:50
    _t Component.js:44
    m MessageInput.svelte:1433
    p MessageInput.svelte:1360
    p MessageInput.svelte:464
    p MessageInput.svelte:458
    dt scheduler.js:119
    _t scheduler.js:79
    promise callback*ut scheduler.js:20
    ht Component.js:81
    ctx Component.js:139
    Nr Chat.svelte:2029
    A Chat.svelte:2153
    ctx Component.js:138
    oe Messages.svelte:281
    F UserMessage.svelte:80
    _e UserMessage.svelte:300
    D dom.js:361
    m UserMessage.svelte:304
    p UserMessage.svelte:187
    p UserMessage.svelte:186
    dt scheduler.js:119
    _t scheduler.js:79
    promise callback*ut scheduler.js:20
    ht Component.js:81
    ctx Component.js:139
    A UserMessage.svelte:64
    Y UserMessage.svelte:430
    D dom.js:361
    m UserMessage.svelte:447
    m Tooltip.svelte:50
    _t Component.js:44
    m UserMessage.svelte:426
    m UserMessage.svelte:597
    m UserMessage.svelte:187
    m UserMessage.svelte:601
    _t Component.js:44
    m Message.svelte:60
    m Message.svelte:68
    m Message.svelte:112
    _t Component.js:44
    m Messages.svelte:438
    y each.js:83
    I each.js:118
    p Messages.svelte:433
    p Messages.svelte:415
    p Messages.svelte:466
    dt scheduler.js:119
    _t scheduler.js:79
    promise callback*ut scheduler.js:20
    ht Component.js:81
    ctx Component.js:139
    zt Chat.svelte:261
    ue Messages.svelte:375
Chat.svelte:1792:27
    tn Chat.svelte:1792
    xr MessageInput.svelte:1416
    (Async: EventListener.handleEvent)
    D dom.js:361
    m MessageInput.svelte:1431
    m Tooltip.svelte:50
    _t Component.js:44
    m MessageInput.svelte:1433
    p MessageInput.svelte:1360
    p MessageInput.svelte:464
    p MessageInput.svelte:458
    dt scheduler.js:119
    _t scheduler.js:79
    (Async: promise callback)
    ut scheduler.js:20
    ht Component.js:81
    ctx Component.js:139
    Nr Chat.svelte:2029
    A Chat.svelte:2153
    ctx Component.js:138
    oe Messages.svelte:281
    F UserMessage.svelte:80
    _e UserMessage.svelte:300
    (Async: EventListener.handleEvent)
    D dom.js:361
    m UserMessage.svelte:304
    p UserMessage.svelte:187
    p UserMessage.svelte:186
    dt scheduler.js:119
    _t scheduler.js:79
    (Async: promise callback)
    ut scheduler.js:20
    ht Component.js:81
    ctx Component.js:139
    A UserMessage.svelte:64
    Y UserMessage.svelte:430
    (Async: EventListener.handleEvent)
    D dom.js:361
    m UserMessage.svelte:447
    m Tooltip.svelte:50
    _t Component.js:44
    m UserMessage.svelte:426
    m UserMessage.svelte:597
    m UserMessage.svelte:187
    m UserMessage.svelte:601
    _t Component.js:44
    m Message.svelte:60
    m Message.svelte:68
    m Message.svelte:112
    _t Component.js:44
    m Messages.svelte:438
    y each.js:83
    I each.js:118
    p Messages.svelte:433
    p Messages.svelte:415
    p Messages.svelte:466
    dt scheduler.js:119
    _t scheduler.js:79
    (Async: promise callback)
    ut scheduler.js:20
    ht Component.js:81
    ctx Component.js:139
    zt Chat.svelte:261
    InterpretGeneratorResume self-hosted:1413
    AsyncFunctionNext self-hosted:800
    (Async: async)
    ue Messages.svelte:375
    InterpretGeneratorResume self-hosted:1413
    AsyncFunctionNext self-hosted:800

Screen Recording of how to reproduce this issue:

https://github.com/user-attachments/assets/8d6c4279-fdd9-477a-a1e7-044ba35de68b

Additional Information

You must start with a chat where there aren't any models selected in the model dropdown, due to whatever reason; it could be a model rename, model deletion, etc.

Originally created by @silentoplayz on GitHub (Jun 16, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/15003 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version v0.6.14 ### Ollama Version (if applicable) v0.9.0 ### Operating System Edition: Windows 11 Pro | Version: 24H2 | OS Build: 26100.4351 | Windows Feature Experience Pack: 1000.26100.107.0 ### Browser (if applicable) LibreWolf v135.0.1-1 (Firefox) ### 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 - A toast notification displaying `Model not found` should appear. (This **DOES** happen, which **IS** expected) - The `Voice Mode` headset icon for calling an LLM should **NOT** change into a `Stop` button, especially since there aren't any models selected in the model dropdown for inference. - Clicking on the `Stop` button in this scenario should revert the button back to the `Voice Mode` headset icon. Instead, an `Uncaught (in promise) TypeError: x.messages[U.parentId] is undefined` error is thrown in the browser console. ### Actual Behavior - A toast notification displaying `Model not found` **does** appear. - The `Voice Mode` headset icon **does** change into the `Stop` button, as if it were generating a response, despite no model being selected in the model dropdown. - `Uncaught (in promise) TypeError: x.messages[U.parentId] is undefined` is thrown in the browser console. ### Steps to Reproduce ### Reproduction Method 1: 1. Create a new custom model from a base Ollama model. 2. Start a new chat with the new custom model you have created and send a query. 3. After the model has finished producing a response, go back to the `Models` section of the workspace and delete the custom model you have created. 4. Return back to the chat where the custom model was used before deletion. You should see `Select a model` at the top of the chat, rather than the model used in it. 5. Edit the message you sent and remove all text. Send the message as a new message. Observe that this triggers the cascade of bugs reported in this issue. 6. Click on the `Stop` button at the right hand side of the text input field. 7. Open the browser console an observe the error. ### Reproduction Method 2: 1. Import the following chat into your Open WebUI instance from the `Chats` section of the settings menu. [chat-export-1750033271698.json](https://github.com/user-attachments/files/20748523/chat-export-1750033271698.json) 2. Return to reproduction method #1, but start from step 5. ### Logs & Screenshots Here is the browser console error that is thrown in LibreWolf browser after reproducing this bug: ```js Uncaught (in promise) TypeError: x.messages[U.parentId] is undefined tn Chat.svelte:1792 xr MessageInput.svelte:1416 D dom.js:361 m MessageInput.svelte:1431 m Tooltip.svelte:50 _t Component.js:44 m MessageInput.svelte:1433 p MessageInput.svelte:1360 p MessageInput.svelte:464 p MessageInput.svelte:458 dt scheduler.js:119 _t scheduler.js:79 promise callback*ut scheduler.js:20 ht Component.js:81 ctx Component.js:139 Nr Chat.svelte:2029 A Chat.svelte:2153 ctx Component.js:138 oe Messages.svelte:281 F UserMessage.svelte:80 _e UserMessage.svelte:300 D dom.js:361 m UserMessage.svelte:304 p UserMessage.svelte:187 p UserMessage.svelte:186 dt scheduler.js:119 _t scheduler.js:79 promise callback*ut scheduler.js:20 ht Component.js:81 ctx Component.js:139 A UserMessage.svelte:64 Y UserMessage.svelte:430 D dom.js:361 m UserMessage.svelte:447 m Tooltip.svelte:50 _t Component.js:44 m UserMessage.svelte:426 m UserMessage.svelte:597 m UserMessage.svelte:187 m UserMessage.svelte:601 _t Component.js:44 m Message.svelte:60 m Message.svelte:68 m Message.svelte:112 _t Component.js:44 m Messages.svelte:438 y each.js:83 I each.js:118 p Messages.svelte:433 p Messages.svelte:415 p Messages.svelte:466 dt scheduler.js:119 _t scheduler.js:79 promise callback*ut scheduler.js:20 ht Component.js:81 ctx Component.js:139 zt Chat.svelte:261 ue Messages.svelte:375 Chat.svelte:1792:27 tn Chat.svelte:1792 xr MessageInput.svelte:1416 (Async: EventListener.handleEvent) D dom.js:361 m MessageInput.svelte:1431 m Tooltip.svelte:50 _t Component.js:44 m MessageInput.svelte:1433 p MessageInput.svelte:1360 p MessageInput.svelte:464 p MessageInput.svelte:458 dt scheduler.js:119 _t scheduler.js:79 (Async: promise callback) ut scheduler.js:20 ht Component.js:81 ctx Component.js:139 Nr Chat.svelte:2029 A Chat.svelte:2153 ctx Component.js:138 oe Messages.svelte:281 F UserMessage.svelte:80 _e UserMessage.svelte:300 (Async: EventListener.handleEvent) D dom.js:361 m UserMessage.svelte:304 p UserMessage.svelte:187 p UserMessage.svelte:186 dt scheduler.js:119 _t scheduler.js:79 (Async: promise callback) ut scheduler.js:20 ht Component.js:81 ctx Component.js:139 A UserMessage.svelte:64 Y UserMessage.svelte:430 (Async: EventListener.handleEvent) D dom.js:361 m UserMessage.svelte:447 m Tooltip.svelte:50 _t Component.js:44 m UserMessage.svelte:426 m UserMessage.svelte:597 m UserMessage.svelte:187 m UserMessage.svelte:601 _t Component.js:44 m Message.svelte:60 m Message.svelte:68 m Message.svelte:112 _t Component.js:44 m Messages.svelte:438 y each.js:83 I each.js:118 p Messages.svelte:433 p Messages.svelte:415 p Messages.svelte:466 dt scheduler.js:119 _t scheduler.js:79 (Async: promise callback) ut scheduler.js:20 ht Component.js:81 ctx Component.js:139 zt Chat.svelte:261 InterpretGeneratorResume self-hosted:1413 AsyncFunctionNext self-hosted:800 (Async: async) ue Messages.svelte:375 InterpretGeneratorResume self-hosted:1413 AsyncFunctionNext self-hosted:800 ``` ### Screen Recording of how to reproduce this issue: https://github.com/user-attachments/assets/8d6c4279-fdd9-477a-a1e7-044ba35de68b ### Additional Information ### You **must** start with a chat where there aren't any models selected in the model dropdown, due to whatever reason; it could be a model rename, model deletion, etc.
GiteaMirror added the bug label 2026-04-19 23:11:46 -05:00
Author
Owner

@tjbck commented on GitHub (Jun 16, 2025):

8892c14984 may have addressed the issue, testing wanted here!

<!-- gh-comment-id:2975445576 --> @tjbck commented on GitHub (Jun 16, 2025): 8892c14984a08f157122450b14322ffa684345f1 may have addressed the issue, testing wanted here!
Author
Owner

@silentoplayz commented on GitHub (Jun 16, 2025):

8892c14 may have addressed the issue, testing wanted here!

This commit does prevent the Model not found notification from appearing, but the Call icon ultimately still gets changed over to a Stop button. Upon clicking the stop button, I get this new browser console error:

Uncaught (in promise) TypeError: Z.messages[B.parentId] is undefined
    an Chat.svelte:1816
    xr MessageInput.svelte:1437
Chat.svelte:1816:27
    an Chat.svelte:1816
    xr MessageInput.svelte:1437
<!-- gh-comment-id:2976505547 --> @silentoplayz commented on GitHub (Jun 16, 2025): > [8892c14](https://github.com/open-webui/open-webui/commit/8892c14984a08f157122450b14322ffa684345f1) may have addressed the issue, testing wanted here! This commit does prevent the `Model not found` notification from appearing, but the `Call` icon ultimately still gets changed over to a `Stop` button. Upon clicking the stop button, I get this new browser console error: ```js Uncaught (in promise) TypeError: Z.messages[B.parentId] is undefined an Chat.svelte:1816 xr MessageInput.svelte:1437 Chat.svelte:1816:27 an Chat.svelte:1816 xr MessageInput.svelte:1437 ```
Author
Owner

@tjbck commented on GitHub (Jun 16, 2025):

Might've been addressed with 9cbe2644b1, testing wanted here still!

<!-- gh-comment-id:2976566303 --> @tjbck commented on GitHub (Jun 16, 2025): Might've been addressed with 9cbe2644b14fb5a894979023fd2321905af5e288, testing wanted here still!
Author
Owner

@silentoplayz commented on GitHub (Jun 16, 2025):

Might've been addressed with 9cbe264, testing wanted here still!

This commit did the trick! It does display the Model not found notification (as anticipated/expected, because there's no model selected in the model dropdown within my test chat) and editing my message to remove it, followed by clicking either Save or Send does not switch the Call icon to a Stop icon any longer. No error is thrown in the browser console logs or within Docker logs anymore. This issue has been solved!🎉

<!-- gh-comment-id:2976885375 --> @silentoplayz commented on GitHub (Jun 16, 2025): > Might've been addressed with [9cbe264](https://github.com/open-webui/open-webui/commit/9cbe2644b14fb5a894979023fd2321905af5e288), testing wanted here still! This commit did the trick! It does display the `Model not found` notification (**as anticipated/expected**, because there's no model selected in the model dropdown within my test chat) and editing my message to remove it, followed by clicking either `Save` or `Send` does not switch the `Call` icon to a `Stop` icon any longer. No error is thrown in the browser console logs or within Docker logs anymore. This issue has been solved!🎉
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#17439