Front-end crash when editing first message #1327

Closed
opened 2025-11-11 14:42:54 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @leobenkel on GitHub (Jun 20, 2024).

Bug Report

Description

Bug Summary:

The chat breaks when the first message is edited

Steps to Reproduce:

  • Drag a document ( i havent tried without the document )
  • Ask a question
  • Wait for answer
  • Edit the very first message in this chat
  • Errors in the console

Expected Behavior:

The chat should restart with this new initial message

Actual Behavior:

The chat is broken and can't be used anymore

Environment

all latest.
Firefox

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.

Logs and Screenshots

Browser Console Logs:

Uncaught (in promise) TypeError: currentMessage is undefined
    update Chat.svelte:109
    update scheduler.js:115
    flush scheduler.js:79

Uncaught (in promise) TypeError: history.messages[parentId] is undefined
    sendPrompt Chat.svelte:427
    confirmEditMessage Messages.svelte:82
Originally created by @leobenkel on GitHub (Jun 20, 2024). # Bug Report ## Description **Bug Summary:** The chat breaks when the first message is edited **Steps to Reproduce:** * Drag a document ( i havent tried without the document ) * Ask a question * Wait for answer * Edit the very first message in this chat * Errors in the console **Expected Behavior:** The chat should restart with this new initial message **Actual Behavior:** The chat is broken and can't be used anymore ## Environment all latest. Firefox ## Reproduction Details **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [x] I have included the browser console logs. ## Logs and Screenshots **Browser Console Logs:** ``` Uncaught (in promise) TypeError: currentMessage is undefined update Chat.svelte:109 update scheduler.js:115 flush scheduler.js:79 Uncaught (in promise) TypeError: history.messages[parentId] is undefined sendPrompt Chat.svelte:427 confirmEditMessage Messages.svelte:82 ```
Author
Owner

@leobenkel commented on GitHub (Jun 20, 2024):

I have just tested to edit the first message without uploading a document first and this crash as well.

@leobenkel commented on GitHub (Jun 20, 2024): I have just tested to edit the first message without uploading a document first and this crash as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1327