[GH-ISSUE #17697] issue: browser console error: Uncaught Error: [tiptap error]: The editor view is not available. Cannot access view['hasFocus']. The editor may not be mounted yet #33897

Closed
opened 2026-04-25 07:46:42 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @rgaricano on GitHub (Sep 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17697

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

0.6.30

Ollama Version (if applicable)

No response

Operating System

ubuntu 24.04

Browser (if applicable)

No response

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

Errors Clean Console

Actual Behavior

Debugging custom tool, editing and testing, in some ocassions the chat "freeze" with this error in browser console:
Uncaught Error: [tiptap error]: The editor view is not available. Cannot access view['hasFocus']. The editor may not be mounted yet. at Object.get (index.js:4482:17) at index.js:2686:12 at Object.focus (index.js:60:44) at RichTextInput.svelte:898:22

Steps to Reproduce

editing tools and testing its in chat (in debug process).
I didn't recorded its, but after getting repetitive same errors I was interesting and I gathered some information.

Logs & Screenshots

Uncaught Error: [tiptap error]: The editor view is not available. Cannot access view['hasFocus']. The editor may not be mounted yet. at Object.get (index.js:4482:17) at index.js:2686:12 at Object.focus (index.js:60:44) at RichTextInput.svelte:898:22

Additional Information

Solved with:

export const focus = () => {  
    if (editor && editor.view) {  
        editor.view.focus();  
        // Scroll to the current selection  
        editor.view.dispatch(editor.view.state.tr.scrollIntoView());  
    }  
};

==>
6bc5d331a2/src/lib/components/common/RichTextInput.svelte (L822-L828)

Originally created by @rgaricano on GitHub (Sep 24, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17697 ### 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 am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version 0.6.30 ### Ollama Version (if applicable) _No response_ ### Operating System ubuntu 24.04 ### Browser (if applicable) _No response_ ### 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 Errors Clean Console ### Actual Behavior Debugging custom tool, editing and testing, in some ocassions the chat "freeze" with this error in browser console: `Uncaught Error: [tiptap error]: The editor view is not available. Cannot access view['hasFocus']. The editor may not be mounted yet. at Object.get (index.js:4482:17) at index.js:2686:12 at Object.focus (index.js:60:44) at RichTextInput.svelte:898:22` ### Steps to Reproduce editing tools and testing its in chat (in debug process). I didn't recorded its, but after getting repetitive same errors I was interesting and I gathered some information. ### Logs & Screenshots Uncaught Error: [tiptap error]: The editor view is not available. Cannot access view['hasFocus']. The editor may not be mounted yet. at Object.get (index.js:4482:17) at index.js:2686:12 at Object.focus (index.js:60:44) at RichTextInput.svelte:898:22 ### Additional Information Solved with: ``` export const focus = () => { if (editor && editor.view) { editor.view.focus(); // Scroll to the current selection editor.view.dispatch(editor.view.state.tr.scrollIntoView()); } }; ``` ==> https://github.com/open-webui/open-webui/blob/6bc5d331a27c5106f492213510a763effa316faf/src/lib/components/common/RichTextInput.svelte#L822-L828
GiteaMirror added the bug label 2026-04-25 07:46:42 -05:00
Author
Owner

@tjbck commented on GitHub (Sep 24, 2025):

5eaee44daa

<!-- gh-comment-id:3328030324 --> @tjbck commented on GitHub (Sep 24, 2025): 5eaee44daa72196432d00b52a5016ecacc95a1c4
Author
Owner

@rgaricano commented on GitHub (Sep 26, 2025):

It appears again with v0.6.31...now when I delete a previous user message, I tried applying the patch as before, but the problem persists.

Image
Image
Image

<!-- gh-comment-id:3339503041 --> @rgaricano commented on GitHub (Sep 26, 2025): It appears again with v0.6.31...now when I delete a previous user message, I tried applying the patch as before, but the problem persists. ![Image](https://github.com/user-attachments/assets/4c3f2347-b947-40f9-8fc4-fa0a2e27bc5e) ![Image](https://github.com/user-attachments/assets/67cbbde3-e929-472f-9435-74096d6032c2) ![Image](https://github.com/user-attachments/assets/f0182fc6-3686-48e9-864c-38a511556a2c)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#33897