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.26
Ollama Version (if applicable)
0.11.7
Operating System
Fedora 42
Browser (if applicable)
Firefox
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
Only packages needed by the code should be imported by pydiode.
Actual Behavior
When using Code Execution with pydiode, sometimes unnecessary packages are included. For example here regex produces some debug output, although it shouldn't be included at all based on the provided code:
Steps to Reproduce
Try the prompt+result provided in the screenshot.
Logs & Screenshots
browser:
Source map error: No sources are declared in this source map.
Resource URL: http://localhost:8080/_app/immutable/entry/start.BiAXo4y2.js
Source Map URL: start.BiAXo4y2.js.map
Source map error: No sources are declared in this source map.
Resource URL: http://localhost:8080/_app/immutable/chunks/C1FmrZbK.js
Source Map URL: C1FmrZbK.js.map
Source map error: No sources are declared in this source map.
Resource URL: http://localhost:8080/_app/immutable/chunks/DXOcaIte.js
Source Map URL: DXOcaIte.js.map
Source map error: No sources are declared in this source map.
Resource URL: http://localhost:8080/_app/immutable/chunks/3yTX-M8x.js
Source Map URL: 3yTX-M8x.js.map
[tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. DYAJic7a.js:133:16462
Originally created by @rbx on GitHub (Sep 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17176
### 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.26
### Ollama Version (if applicable)
0.11.7
### Operating System
Fedora 42
### Browser (if applicable)
Firefox
### 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
Only packages needed by the code should be imported by pydiode.
### Actual Behavior
When using Code Execution with pydiode, sometimes unnecessary packages are included. For example here regex produces some debug output, although it shouldn't be included at all based on the provided code:
<img width="1013" height="352" alt="Image" src="https://github.com/user-attachments/assets/a4bd063b-2310-4a31-a363-43df99cfdb18" />
### Steps to Reproduce
Try the prompt+result provided in the screenshot.
### Logs & Screenshots
browser:
```
Source map error: No sources are declared in this source map.
Resource URL: http://localhost:8080/_app/immutable/entry/start.BiAXo4y2.js
Source Map URL: start.BiAXo4y2.js.map
Source map error: No sources are declared in this source map.
Resource URL: http://localhost:8080/_app/immutable/chunks/C1FmrZbK.js
Source Map URL: C1FmrZbK.js.map
Source map error: No sources are declared in this source map.
Resource URL: http://localhost:8080/_app/immutable/chunks/DXOcaIte.js
Source Map URL: DXOcaIte.js.map
Source map error: No sources are declared in this source map.
Resource URL: http://localhost:8080/_app/immutable/chunks/3yTX-M8x.js
Source Map URL: 3yTX-M8x.js.map
[tiptap warn]: Duplicate extension names found: ['codeBlock', 'bulletList', 'listItem', 'listKeymap', 'orderedList']. This can lead to issues. DYAJic7a.js:133:16462
```
### Additional Information
Digging into the code base a little bit, this seems to be the culprit: https://github.com/open-webui/open-webui/blob/main/src/lib/components/chat/Messages/CodeBlock.svelte#L225
Which seems to search the entire code for those patterns.
Would it be better to search only for import statements (thus requiring those to be present)?
I tried the following modification and it resolves the issue:
```diff
- code.includes('re') ? 'regex' : null,
+ /\bimport\s+re\b|\bfrom\s+re\b/.test(code) ? 'regex' : null
```
GiteaMirror
added the bug label 2026-05-15 13:44:58 -05:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @rbx on GitHub (Sep 3, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17176
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.6.26
Ollama Version (if applicable)
0.11.7
Operating System
Fedora 42
Browser (if applicable)
Firefox
Confirmation
README.md.Expected Behavior
Only packages needed by the code should be imported by pydiode.
Actual Behavior
When using Code Execution with pydiode, sometimes unnecessary packages are included. For example here regex produces some debug output, although it shouldn't be included at all based on the provided code:
Steps to Reproduce
Try the prompt+result provided in the screenshot.
Logs & Screenshots
browser:
Additional Information
Digging into the code base a little bit, this seems to be the culprit: https://github.com/open-webui/open-webui/blob/main/src/lib/components/chat/Messages/CodeBlock.svelte#L225
Which seems to search the entire code for those patterns.
Would it be better to search only for import statements (thus requiring those to be present)?
I tried the following modification and it resolves the issue:
@tjbck commented on GitHub (Sep 3, 2025):
Good catch, addressed with bbe116795860a81a647d9567e0d9cb1950650095!