issue: In prompt creation international characters break validation #4881

Closed
opened 2025-11-11 16:05:34 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @holmlund on GitHub (Apr 17, 2025).

Check Existing Issues

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

Installation Method

Git Clone

Open WebUI Version

0.6.5

Ollama Version (if applicable)

No response

Operating System

macOS

Browser (if applicable)

Chrome 135

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 listed steps to reproduce the bug in detail.

Expected Behavior

What I expect

  • Titles may keep their accented characters.
  • Commands should be auto‑slugified: “Hållbar Utveckling” → hallbar-utveckling (no more validation error).
  • Once I touch the command manually, the editor should leave it alone.

Actual Behavior

  1. International characters trip validation
  • If a prompt title contains å, ä, ö, ü, ñ etc. the editor silently copies them into the command field.
  • You end up with the following error and having the manually edit: Only alphanumeric characters and hyphens are allowed in the command string
  1. Manual command overrides don’t stick
  • I fix the command once, hit save, everything’s good.
  • Change the title again → the editor regenerates the command and overwrites my custom value.
  • Rinse, repeat, frustration.

Steps to Reproduce

  1. Create a new prompt
  2. In Title, type Hållbar Utveckling (or any title with å/ä/ö/é/ñ).
  3. Notice the Command field auto‑copies exactly what you typed.
  4. Click Save → validation error appears: Only alphanumeric characters and hyphens are allowed in the command string
  5. Manually edit command to hallbar-utveckling and save again – it works.
  6. Go back and tweak the Title (e.g., add an exclamation mark).
  7. The editor regenerates the command, wiping out your manual change.
  8. You have to re‑type the command every time you touch the title.

Logs & Screenshots

Image

Additional Information

Why it matters

  • Anyone writing in a language other than English hits this every time.
  • Re‑entering the command after each title tweak slows down prompt authoring and feels buggy.

I have created a PR that solves this issue.

Originally created by @holmlund on GitHub (Apr 17, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version 0.6.5 ### Ollama Version (if applicable) _No response_ ### Operating System macOS ### Browser (if applicable) Chrome 135 ### 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 listed steps to reproduce the bug in detail. ### Expected Behavior **What I expect** - Titles may keep their accented characters. - Commands should be auto‑slugified: “Hållbar Utveckling” → hallbar-utveckling (no more validation error). - Once I touch the command manually, the editor should leave it alone. ### Actual Behavior 1. International characters trip validation - If a prompt title contains å, ä, ö, ü, ñ etc. the editor silently copies them into the command field. - You end up with the following error and having the manually edit: `Only alphanumeric characters and hyphens are allowed in the command string` 2. Manual command overrides don’t stick - I fix the command once, hit save, everything’s good. - Change the title again → the editor regenerates the command and overwrites my custom value. - Rinse, repeat, frustration. ### Steps to Reproduce 1. Create a new prompt 2. In Title, type Hållbar Utveckling (or any title with å/ä/ö/é/ñ). 3. Notice the Command field auto‑copies exactly what you typed. 4. Click Save → validation error appears: Only alphanumeric characters and hyphens are allowed in the command string 5. Manually edit command to hallbar-utveckling and save again – it works. 6. Go back and tweak the Title (e.g., add an exclamation mark). 7. The editor regenerates the command, wiping out your manual change. 8. You have to re‑type the command every time you touch the title. ### Logs & Screenshots ![Image](https://github.com/user-attachments/assets/c8ea4044-d00d-45ec-bc97-71ce039ea32e) ### Additional Information **Why it matters** - Anyone writing in a language other than English hits this every time. - Re‑entering the command after each title tweak slows down prompt authoring and feels buggy. I have created a PR that solves this issue.
GiteaMirror added the bug label 2025-11-11 16:05:34 -06:00
Author
Owner

@holmlund commented on GitHub (Apr 17, 2025):

PR: #12974

@holmlund commented on GitHub (Apr 17, 2025): PR: #12974
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4881