[GH-ISSUE #16569] issue: Code Interpreter code gets printed out as text #33492

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

Originally created by @i0ntempest on GitHub (Aug 13, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16569

Check Existing Issues

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

Installation Method

Pip Install

Open WebUI Version

0.6.22

Ollama Version (if applicable)

No response

Operating System

macOS 15.6

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

Interpreter code gets printed out as normal text after execution. Note that if I share the chat to the community, it is displayed correctly.

Actual Behavior

Interpreter code stays in a code block

Steps to Reproduce

python -m venv /opt/open-webui/venv
. /opt/open-webui/venv/bin/activate
pip install --upgrade open-webui

Setup command execution with the this jupyter notebook docker image: quay.io/jupyter/datascience-notebook
Also setup OpenAI API for gpt-5 model
I cannot however upload the chat because I keep getting an HTTP 500 when trying to upload the chat to community. So for the full conversation history that triggered this please contact me at boron.briar.5a@icloud.com (Yes this is an iCloud private proxy address)

Logs & Screenshots

Image

Python comment being rendered in markdown as a header line

:38443/api/v1/auths/:1  Failed to load resource: the server responded with a status of 401 (Unauthorized)
index.ts:101 Object
(anonymous) @ index.ts:101
+layout.svelte:92 No token found in localStorage, user-join event not emitted
(anonymous) @ +layout.svelte:92
:38443/auth?redirect=%2F:1 Unchecked runtime.lastError: The message port closed before a response was received.
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:4482 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:874:22
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:4482 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:874:22
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:4482 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:874:22
:38443/api/tasks/stop/ba075e5f-6316-4b9f-a433-c37de9750c6e:1  Failed to load resource: the server responded with a status of 500 (Internal Server Error)
index.ts:256 SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON
(anonymous) @ index.ts:256
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:4482 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:874:22
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues.
zf @ index.js:791
index.js:4482 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:874:22

Additional Information

No response

Originally created by @i0ntempest on GitHub (Aug 13, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/16569 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Pip Install ### Open WebUI Version 0.6.22 ### Ollama Version (if applicable) _No response_ ### Operating System macOS 15.6 ### 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 Interpreter code gets printed out as normal text after execution. Note that if I share the chat to the community, it is displayed correctly. ### Actual Behavior Interpreter code stays in a code block ### Steps to Reproduce ``` python -m venv /opt/open-webui/venv . /opt/open-webui/venv/bin/activate pip install --upgrade open-webui ``` Setup command execution with the this jupyter notebook docker image: quay.io/jupyter/datascience-notebook Also setup OpenAI API for gpt-5 model I cannot however upload the chat because I keep getting an HTTP 500 when trying to upload the chat to community. So for the full conversation history that triggered this please contact me at boron.briar.5a@icloud.com (Yes this is an iCloud private proxy address) ### Logs & Screenshots <img width="1214" height="706" alt="Image" src="https://github.com/user-attachments/assets/54ee6ee1-4f52-4af6-b7da-f6d7e024b6d0" /> Python comment being rendered in markdown as a header line ``` :38443/api/v1/auths/:1 Failed to load resource: the server responded with a status of 401 (Unauthorized) index.ts:101 Object (anonymous) @ index.ts:101 +layout.svelte:92 No token found in localStorage, user-join event not emitted (anonymous) @ +layout.svelte:92 :38443/auth?redirect=%2F:1 Unchecked runtime.lastError: The message port closed before a response was received. index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:4482 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:874:22 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:4482 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:874:22 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:4482 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:874:22 :38443/api/tasks/stop/ba075e5f-6316-4b9f-a433-c37de9750c6e:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error) index.ts:256 SyntaxError: Unexpected token 'I', "Internal S"... is not valid JSON (anonymous) @ index.ts:256 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:4482 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:874:22 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:791 [tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. zf @ index.js:791 index.js:4482 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:874:22 ``` ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-25 07:24:36 -05:00
Author
Owner

@renelehmann78 commented on GitHub (Aug 13, 2025):

Same issue here already with version 0.6.18 with both - Firefox and Chrome. One has to edit the message and add the type of language again (python, java ...) after receiving the response to render the text in the right format.

<!-- gh-comment-id:3184366766 --> @renelehmann78 commented on GitHub (Aug 13, 2025): Same issue here already with version 0.6.18 with both - Firefox and Chrome. One has to edit the message and add the type of language again (python, java ...) after receiving the response to render the text in the right format.
Author
Owner

@tjbck commented on GitHub (Aug 13, 2025):

@renelehmann78 seems unrelated to the issue being described here.

@i0ntempest it seems like you're using a some sort of external tool alongside the code interpreter? could you confirm?

<!-- gh-comment-id:3184600007 --> @tjbck commented on GitHub (Aug 13, 2025): @renelehmann78 seems unrelated to the issue being described here. @i0ntempest it seems like you're using a some sort of external tool alongside the code interpreter? could you confirm?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#33492