[GH-ISSUE #14823] issue: When using Code Interpreter, the code becomes malformed after execution. #104372

Closed
opened 2026-05-18 02:01:55 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @blakkd on GitHub (Jun 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14823

Originally assigned to: @tjbck, @jackthgu on GitHub.

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

v0.6.13

Ollama Version (if applicable)

0.9.0

Operating System

Ubuntu 24.04

Browser (if applicable)

Brave 1.79.119 (Official Build) (64-bit) - Firefox 139.0.1 (64-bit)

Expected Behavior

The code written sent to the interpreter shouldn't change after execution.

Actual Behavior

The code is first generated correctly by the LM, but becomes malformed right after execution.

Steps to Reproduce

  1. Set the code interpreter to either pyodid or Jupyter.
  2. Make the LM use the Code Interpreter tool.

Logs & Screenshots

https://github.com/user-attachments/assets/18a1bec9-172e-4114-a935-183b6beb46fe

Additional Information

Portions of lines become all mixed together.

Originally created by @blakkd on GitHub (Jun 10, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/14823 Originally assigned to: @tjbck, @jackthgu on GitHub. ### 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 v0.6.13 ### Ollama Version (if applicable) 0.9.0 ### Operating System Ubuntu 24.04 ### Browser (if applicable) Brave 1.79.119 (Official Build) (64-bit) - Firefox 139.0.1 (64-bit) ### Expected Behavior The code written sent to the interpreter shouldn't change after execution. ### Actual Behavior The code is first generated correctly by the LM, but becomes malformed right after execution. ### Steps to Reproduce 1. Set the code interpreter to either pyodid or Jupyter. 2. Make the LM use the Code Interpreter tool. ### Logs & Screenshots https://github.com/user-attachments/assets/18a1bec9-172e-4114-a935-183b6beb46fe ### Additional Information Portions of lines become all mixed together.
GiteaMirror added the bug label 2026-05-18 02:01:55 -05:00
Author
Owner

@blakkd commented on GitHub (Jun 25, 2025):

Thanks @tjbck!

I cleaned the irrelevant parts of the issue template for readability, I didn't notice before opening the issue.

Also:

  • The browser console doesn't show anything.
  • The formatting is correct if:
    • reloading the page
    • the code interpreter code block is expanded after execution

Sorry for the incomplete early posting.

Is the issue reproduced on your side?

<!-- gh-comment-id:3005464166 --> @blakkd commented on GitHub (Jun 25, 2025): Thanks @tjbck! I cleaned the irrelevant parts of the issue template for readability, I didn't notice before opening the issue. Also: - The browser console doesn't show anything. - The formatting is correct if: - reloading the page - the code interpreter code block is expanded **after** execution Sorry for the incomplete early posting. Is the issue reproduced on your side?
Author
Owner

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

Addressed in dev with 21d616f8ed5cf84bbb9ae743aada3ffd3b7a6b10!

<!-- gh-comment-id:3007438384 --> @tjbck commented on GitHub (Jun 26, 2025): Addressed in dev with 21d616f8ed5cf84bbb9ae743aada3ffd3b7a6b10!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#104372