Skip to content

issue: new lines from CLIPBOARD problems on Windows #19370

@daniporr

Description

@daniporr

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

Git Clone

Open WebUI Version

v0.6.36

Ollama Version (if applicable)

No response

Operating System

Windows 11

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

When, on Windows, text is pasted from the clipboard, it should keep all the new lines of the original text.

Actual Behavior

When, on Windows, the text is (automatically) pasted from the {{CLIPBOARD}} variable, it messes up with all the new lines, and when you send the message, all the new lines disappear.

Steps to Reproduce

  1. Open OWUI on Windows
  2. create a new Prompt, in your Workspace, that uses the {{CLIPBOARD}} variable
  3. copy any text with Windows newlines (CRLF)
  4. invoke the new prompt in the chat box
    • you will already see that there is something wrong with it
  5. send it (to any model)

You will notice that in the message sent all the new lines are missing

Logs & Screenshots

Not relevant in this case

Additional Information

I have not included logs as they are not relevant in this case

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions