[GH-ISSUE #16608] issue: macOS Chinese IME: Pressing Enter while composing text sends the message immediately (missing composition state check) #104969

Closed
opened 2026-05-18 02:47:51 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @yuliang615 on GitHub (Aug 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16608

Check Existing Issues

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

Installation Method

Docker

Open WebUI Version

0.6.21

Ollama Version (if applicable)

No response

Operating System

mac os safari

Browser (if applicable)

safari

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

Pressing Enter during composition (while IME candidate list is active) should not send the message — it should only confirm the selected character.
Only after compositionend should the next Enter trigger message submission.

Actual Behavior

On macOS, pressing Enter during Chinese IME composition immediately triggers the send action.
On Windows IME, this often behaves correctly because the IME handles Enter differently.

Steps to Reproduce

Set up the input method:
On macOS, switch to a Chinese IME using Control + Space until you see:
“繁體中文 – 注音” (Traditional Chinese – Zhuyin)
or “簡體中文 – 拼音” (Simplified Chinese – Pinyin)
in the top menu bar.
Begin typing in the chat input:
Click inside the chat input box.
Type a Pinyin or Zhuyin sequence that will produce a candidate list of characters — for example:
Type zhong → you should see candidates like “中”, “重”, “種”, etc.
Do not press the space bar — keep the candidate list open.
Press Enter while still composing:
With the candidate list still visible (IME composition ongoing), press the Enter key once to confirm the first candidate.
Bug: Instead of confirming the character and allowing continued typing, the browser sends the entire chat message immediately.

The message containing the incomplete or partially composed text is sent.
The composition ends abruptly and your intended input is not completed.
In many other applications (Slack, Notion, Google Docs), pressing Enter in this state only confirms the character and does not send.

Logs & Screenshots

Image

Additional Information

No response

Originally created by @yuliang615 on GitHub (Aug 14, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/16608 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.6.21 ### Ollama Version (if applicable) _No response_ ### Operating System mac os safari ### Browser (if applicable) safari ### 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 Pressing Enter during composition (while IME candidate list is active) should not send the message — it should only confirm the selected character. Only after compositionend should the next Enter trigger message submission. ### Actual Behavior On macOS, pressing Enter during Chinese IME composition immediately triggers the send action. On Windows IME, this often behaves correctly because the IME handles Enter differently. ### Steps to Reproduce Set up the input method: On macOS, switch to a Chinese IME using Control + Space until you see: “繁體中文 – 注音” (Traditional Chinese – Zhuyin) or “簡體中文 – 拼音” (Simplified Chinese – Pinyin) in the top menu bar. Begin typing in the chat input: Click inside the chat input box. Type a Pinyin or Zhuyin sequence that will produce a candidate list of characters — for example: Type zhong → you should see candidates like “中”, “重”, “種”, etc. Do not press the space bar — keep the candidate list open. Press Enter while still composing: With the candidate list still visible (IME composition ongoing), press the Enter key once to confirm the first candidate. Bug: Instead of confirming the character and allowing continued typing, the browser sends the entire chat message immediately. The message containing the incomplete or partially composed text is sent. The composition ends abruptly and your intended input is not completed. In many other applications (Slack, Notion, Google Docs), pressing Enter in this state only confirms the character and does not send. ### Logs & Screenshots <img width="1065" height="510" alt="Image" src="https://github.com/user-attachments/assets/73b270dd-7c88-4d61-8fb8-891f1aac10db" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-18 02:47:51 -05:00
Author
Owner

@ShirasawaSama commented on GitHub (Aug 14, 2025):

用的是什么输入法呢?我用mac自带的输入法没有这个问题

<!-- gh-comment-id:3187841464 --> @ShirasawaSama commented on GitHub (Aug 14, 2025): 用的是什么输入法呢?我用mac自带的输入法没有这个问题
Author
Owner

@tjbck commented on GitHub (Aug 14, 2025):

Can't seem to reproduce from our end, keep us updated!

<!-- gh-comment-id:3187859710 --> @tjbck commented on GitHub (Aug 14, 2025): Can't seem to reproduce from our end, keep us updated!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#104969