[GH-ISSUE #21143] issue: multiple buttons with the same ID in chat window with Notes feature enabled #139124

Closed
opened 2026-05-25 12:26:33 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @schveiguy on GitHub (Feb 4, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21143

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

Docker

Open WebUI Version

v0.7.2

Ollama Version (if applicable)

No response

Operating System

Ubuntu 24.04

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

Buttons should not be assigned duplicate ids.

Actual Behavior

With the Notes feature enabled, when a chat window has text in it, there are two buttons that appear, the send button, and the "make note button", which both are assigned the id send-message-button.

per html rules, item ids must be unique.

This is affecting playwright scripts that I have, which try to press this button, but fail since multiple results are found.

I believe the error was introduced here: https://github.com/open-webui/open-webui/commit/00c2b6ca405d617e3d7520953a00a36c19c790ec#diff-021535124ecf569d90d74afd5d4af2baefa24bd540b65a3df9b02248ab067559R1794 possibly a copy-paste issue.

Steps to Reproduce

  1. Install Open-webui per normal instructions
  2. Enable the Notes feature
  3. Start a new chat
  4. Type anything into the chat text box
  5. Open developer console, and execute the command console.log(document.querySelectorAll("#send-message-button"));
  6. The result should contain a single element, but it contains 2.

Logs & Screenshots

Notes feature must be enabled:

Image Image

Additional Information

No response

Originally created by @schveiguy on GitHub (Feb 4, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/21143 ### 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 Docker ### Open WebUI Version v0.7.2 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 24.04 ### Browser (if applicable) _No response_ ### 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 Buttons should not be assigned duplicate ids. ### Actual Behavior With the Notes feature enabled, when a chat window has text in it, there are two buttons that appear, the send button, and the "make note button", which both are assigned the id `send-message-button`. per html rules, item ids must be unique. This is affecting playwright scripts that I have, which try to press this button, but fail since multiple results are found. I believe the error was introduced here: https://github.com/open-webui/open-webui/commit/00c2b6ca405d617e3d7520953a00a36c19c790ec#diff-021535124ecf569d90d74afd5d4af2baefa24bd540b65a3df9b02248ab067559R1794 possibly a copy-paste issue. ### Steps to Reproduce 1. Install Open-webui per normal instructions 2. Enable the Notes feature 3. Start a new chat 4. Type anything into the chat text box 5. Open developer console, and execute the command `console.log(document.querySelectorAll("#send-message-button"));` 6. The result should contain a single element, but it contains 2. ### Logs & Screenshots Notes feature must be enabled: <img width="477" height="163" alt="Image" src="https://github.com/user-attachments/assets/1040abbb-f3ee-49b8-9698-c8f9ee8ee2fb" /> <img width="1076" height="140" alt="Image" src="https://github.com/user-attachments/assets/9eb0beee-b879-4314-821a-07fc224b7e7e" /> ### Additional Information _No response_
GiteaMirror added the confirmed issuebug labels 2026-05-25 12:26:33 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (Feb 4, 2026):

🔍 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. #20414 issue: Chats can't be archived
    by Ithanil • Jan 06, 2026 • bug

  2. #19987 issue: There is a lack of visual consistency between the home page and the chat interface.
    by i-iooi-i • Dec 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:3845204005 --> @owui-terminator[bot] commented on GitHub (Feb 4, 2026): 🔍 **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. [#20414](https://github.com/open-webui/open-webui/issues/20414) **issue: Chats can't be archived** *by Ithanil • Jan 06, 2026 • `bug`* 2. [#19987](https://github.com/open-webui/open-webui/issues/19987) **issue: There is a lack of visual consistency between the home page and the chat interface.** *by i-iooi-i • Dec 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.
Author
Owner

@silentoplayz commented on GitHub (Feb 4, 2026):

This issue has likely been resolved already, as I am unable to reproduce the reported issue on my end using the latest dev branch version of Open WebUI across Mozilla Firefox and Google Chrome.

Google Chrome

Image

Mozilla Firefox

Image

And to even see a length of 1 here, I must have something typed within the chat input field of the chat.

Update: I've reproduced the reported issue.

<!-- gh-comment-id:3847684644 --> @silentoplayz commented on GitHub (Feb 4, 2026): ~~This issue has likely been resolved already, as I am unable to reproduce the reported issue on my end using the latest `dev` branch version of Open WebUI across Mozilla Firefox and Google Chrome.~~ ### Google Chrome <img width="1309" height="113" alt="Image" src="https://github.com/user-attachments/assets/c9954f85-25eb-4ef3-b671-395fa484a1c2" /> ### Mozilla Firefox <img width="2560" height="111" alt="Image" src="https://github.com/user-attachments/assets/5e1543d6-7b2a-4897-acc7-8583a1503977" /> And to even see a length of `1` here, I must have something typed within the chat input field of the chat. ### Update: I've reproduced the reported issue.
Author
Owner

@schveiguy commented on GitHub (Feb 4, 2026):

Hm... I still see the dual ids in the dev copy of that file. Perhaps it's not as simple as using the vanilla installation.

I too, did not see any elements if I didn't type anything in the chat. But that is to be expected, the buttons don't show up until you do. Do you see both these buttons?

Image
<!-- gh-comment-id:3847732516 --> @schveiguy commented on GitHub (Feb 4, 2026): Hm... I still see the dual ids in the dev copy of that file. Perhaps it's not as simple as using the vanilla installation. I too, did not see any elements if I didn't type anything in the chat. But that is to be expected, the buttons don't show up until you do. Do you see both these buttons? <img width="131" height="53" alt="Image" src="https://github.com/user-attachments/assets/1da1cb40-4c97-431f-8b7e-2f12cd384031" />
Author
Owner

@schveiguy commented on GitHub (Feb 4, 2026):

OK, I found you have to enable the Notes feature. Editing the reproduction steps.

Image
<!-- gh-comment-id:3847755588 --> @schveiguy commented on GitHub (Feb 4, 2026): OK, I found you have to enable the Notes feature. Editing the reproduction steps. <img width="477" height="163" alt="Image" src="https://github.com/user-attachments/assets/8b7a05f6-14f3-43a2-88c9-b90fb9e4fc7e" />
Author
Owner

@silentoplayz commented on GitHub (Feb 4, 2026):

Aha! So I actually am able to reproduce the reported issue if I simply start a new chat and type something within the chat's input field. I am not able to reproduce it in existing chats because the Create Note button does not appear then. Yes, I do have the Notes (Beta) featured enabled within the admin settings.

New Chat

Image Image

Existing Chat

Image Image
<!-- gh-comment-id:3847824901 --> @silentoplayz commented on GitHub (Feb 4, 2026): Aha! So I actually am able to reproduce the reported issue if I simply start a new chat and type something within the chat's input field. I am not able to reproduce it in existing chats because the `Create Note` button does not appear then. Yes, I do have the `Notes (Beta)` featured enabled within the admin settings. ### New Chat <img width="2560" height="133" alt="Image" src="https://github.com/user-attachments/assets/cdebd969-1e55-4874-af40-d3c0b38629d9" /> <img width="2312" height="129" alt="Image" src="https://github.com/user-attachments/assets/e66ce61e-3cfd-4126-bacf-0e966996f3e2" /> ### Existing Chat <img width="2560" height="111" alt="Image" src="https://github.com/user-attachments/assets/5e1543d6-7b2a-4897-acc7-8583a1503977" /> <img width="2312" height="129" alt="Image" src="https://github.com/user-attachments/assets/eb1059af-bc4f-4555-9932-fd2ba8049e26" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#139124