[GH-ISSUE #20155] Code Interpreter (Local Jupyter) gets stuck in an execution loop #73710

Closed
opened 2026-05-13 06:11:18 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @dhaern on GitHub (Dec 24, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20155

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

v0.6.43

Ollama Version (if applicable)

No response

Operating System

Ubuntu 24.04

Browser (if applicable)

Zen Browser

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

The Code Interpreter should execute a submitted code block exactly once and return the output. It should stop after a successful run and not re‑emit or re‑execute the same block automatically ("infinite" loop).

Actual Behavior

The Code Interpreter repeatedly re‑emits and re‑executes the same code block in a loop, even for trivial code such as print("hello, world!"). The loop continues without user input and only stops if the task is manually cancelled.

Steps to Reproduce

  1. Open Open WebUI in a browser and log in as an admin user.
  2. Ensure Code Interpreter is enabled for the selected model (capability toggles in the model settings).
  3. Ensure local Jupyter is running and reachable:
  • Service: openwebui-jupyter.service (systemd)
  • Jupyter bound to 127.0.0.1:8888
  1. Start a new chat with a model that supports Code Interpreter.
  2. Submit a minimal code instruction, for example:

print("hello, world!")

  1. Observe the response: the tool repeatedly emits and executes the same block instead of stopping after the first run.

Logs & Screenshots

  • Open WebUI service logs show repeated tool activity while the loop is happening (no issues found besides the repeated activity).
  • Example log command used:

sudo journalctl -u openwebui -n 300 --no-pager

  • Jupyter service status (optional):

sudo systemctl status openwebui-jupyter --no-pager -l

Image

Additional Information

  • Open WebUI runs as a systemd service bound to 127.0.0.1:8080 behind a reverse proxy.
  • Restarting the Jupyter service does not stop the loop.
  • The issue occurs with trivial code and does not appear related to complex execution.

I already found a related issue https://github.com/open-webui/open-webui/issues/14823 and the "fix" https://github.com/open-webui/open-webui/commit/21d616f8ed5cf84bbb9ae743aada3ffd3b7a6b10 but months after this is still happening.

Originally created by @dhaern on GitHub (Dec 24, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/20155 ### 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 have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Pip Install ### Open WebUI Version v0.6.43 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 24.04 ### Browser (if applicable) Zen Browser ### 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 The Code Interpreter should execute a submitted code block exactly once and return the output. It should stop after a successful run and not re‑emit or re‑execute the same block automatically ("infinite" loop). ### Actual Behavior The Code Interpreter repeatedly re‑emits and re‑executes the same code block in a loop, even for trivial code such as print("hello, world!"). The loop continues without user input and only stops if the task is manually cancelled. ### Steps to Reproduce 1. Open Open WebUI in a browser and log in as an admin user. 2. Ensure Code Interpreter is enabled for the selected model (capability toggles in the model settings). 3. Ensure local Jupyter is running and reachable: - Service: openwebui-jupyter.service (systemd) - Jupyter bound to 127.0.0.1:8888 4. Start a new chat with a model that supports Code Interpreter. 5. Submit a minimal code instruction, for example: print("hello, world!") 6. Observe the response: the tool repeatedly emits and executes the same block instead of stopping after the first run. ### Logs & Screenshots - Open WebUI service logs show repeated tool activity while the loop is happening (no issues found besides the repeated activity). - Example log command used: sudo journalctl -u openwebui -n 300 --no-pager - Jupyter service status (optional): sudo systemctl status openwebui-jupyter --no-pager -l <img width="2345" height="1855" alt="Image" src="https://github.com/user-attachments/assets/f5d844c2-85ca-45b4-9f7c-62199ce6c625" /> ### Additional Information - Open WebUI runs as a systemd service bound to 127.0.0.1:8080 behind a reverse proxy. - Restarting the Jupyter service does not stop the loop. - The issue occurs with trivial code and does not appear related to complex execution. I already found a related issue [https://github.com/open-webui/open-webui/issues/14823](url) and the "fix" [https://github.com/open-webui/open-webui/commit/21d616f8ed5cf84bbb9ae743aada3ffd3b7a6b10](url) but months after this is still happening.
GiteaMirror added the bug label 2026-05-13 06:11:18 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (Dec 24, 2025):

🔍 Similar Issues Found

I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:

  1. #20107 issue:
    by mengdeer589 • Dec 22, 2025 • bug

  2. #20019 issue:
    by j63440490 • Dec 17, 2025 • bug

  3. #19877 issue:
    by dotmobo • Dec 11, 2025 • bug

  4. #19777 issue:
    by Yaute7 • Dec 05, 2025 • bug

  5. #19864 issue:
    by Haervwe • Dec 10, 2025 • bug

Show 5 more related issues
  1. #20092 issue:
    by VideoRyan • Dec 22, 2025 • bug

  2. #19861 issue:
    by QuitHub • Dec 10, 2025 • bug

  3. #20046 issue:
    by pierrelouisbescond • Dec 19, 2025 • bug

  4. #19563 issue:
    by naruto7g • Nov 28, 2025 • bug

  5. #19211 issue:
    by Byrnes9 • Nov 16, 2025 • bug


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3688826091 --> @owui-terminator[bot] commented on GitHub (Dec 24, 2025): 🔍 **Similar Issues Found** I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions: 1. [#20107](https://github.com/open-webui/open-webui/issues/20107) **issue:** *by mengdeer589 • Dec 22, 2025 • `bug`* 2. [#20019](https://github.com/open-webui/open-webui/issues/20019) **issue:** *by j63440490 • Dec 17, 2025 • `bug`* 3. [#19877](https://github.com/open-webui/open-webui/issues/19877) **issue:** *by dotmobo • Dec 11, 2025 • `bug`* 4. [#19777](https://github.com/open-webui/open-webui/issues/19777) **issue:** *by Yaute7 • Dec 05, 2025 • `bug`* 5. [#19864](https://github.com/open-webui/open-webui/issues/19864) **issue:** *by Haervwe • Dec 10, 2025 • `bug`* <details> <summary>Show 5 more related issues</summary> 6. [#20092](https://github.com/open-webui/open-webui/issues/20092) **issue:** *by VideoRyan • Dec 22, 2025 • `bug`* 7. [#19861](https://github.com/open-webui/open-webui/issues/19861) **issue:** *by QuitHub • Dec 10, 2025 • `bug`* 8. [#20046](https://github.com/open-webui/open-webui/issues/20046) **issue:** *by pierrelouisbescond • Dec 19, 2025 • `bug`* 9. [#19563](https://github.com/open-webui/open-webui/issues/19563) **issue:** *by naruto7g • Nov 28, 2025 • `bug`* 10. [#19211](https://github.com/open-webui/open-webui/issues/19211) **issue:** *by Byrnes9 • Nov 16, 2025 • `bug`* </details> --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Author
Owner

@pr-validator-bot commented on GitHub (Dec 24, 2025):

⚠️ Invalid Issue Title

Hey @dhaern, please provide a descriptive title for your issue. Titles that are empty, very short (under 10 characters), or generic (like "issue:") make it difficult for volunteer contributors to understand and triage issues.

Please update the title to reflect the content of your issue.

<!-- gh-comment-id:3688826149 --> @pr-validator-bot commented on GitHub (Dec 24, 2025): # ⚠️ Invalid Issue Title Hey @dhaern, please provide a descriptive title for your issue. Titles that are empty, very short (under 10 characters), or generic (like "issue:") make it difficult for volunteer contributors to understand and triage issues. Please update the title to reflect the content of your issue.
Author
Owner

@silentoplayz commented on GitHub (Jan 1, 2026):

I am unable to reproduce this issue on the latest dev. Please test the dev branch if you can and let us know if the issue has been solved for you there or not.

<!-- gh-comment-id:3703830308 --> @silentoplayz commented on GitHub (Jan 1, 2026): I am unable to reproduce this issue on the latest dev. Please test the `dev` branch if you can and let us know if the issue has been solved for you there or not.
Author
Owner

@dhaern commented on GitHub (Jan 4, 2026):

@silentoplayz yeah this error was my fault, I didnt know this tool https://openwebui.com/posts/add9aede-799d-48e0-a6d1-93d118a21e3c auto activate code interpreter even if this is off in open webui interface, generating the bug aswell.

<!-- gh-comment-id:3708275301 --> @dhaern commented on GitHub (Jan 4, 2026): @silentoplayz yeah this error was my fault, I didnt know this tool [https://openwebui.com/posts/add9aede-799d-48e0-a6d1-93d118a21e3c](https://openwebui.com/posts/add9aede-799d-48e0-a6d1-93d118a21e3c) auto activate code interpreter even if this is off in open webui interface, generating the bug aswell.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#73710