[GH-ISSUE #4470] [BUG]: Copy buttons not working properly on macOS - clipboard not updated despite success feedback #2849

Closed
opened 2026-02-22 18:31:31 -05:00 by yindo · 1 comment
Owner

Originally created by @MessiasLima on GitHub (Oct 2, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4470

How are you running AnythingLLM?

Docker container

What happened?

The copy buttons in AnythingLLM are not working properly on macOS. This affects both:

  1. Copy buttons on chat messages
  2. Copy buttons on code blocks within messages

When clicking these copy buttons, the application displays a success feedback message indicating that the content was copied to clipboard. However, the actual system clipboard is not updated with the copied content. When attempting to paste (Cmd+V) the content elsewhere, the previous clipboard content remains instead of the expected copied text.

Expected behavior: When clicking copy buttons, the content should be successfully copied to the system clipboard and be available for pasting in other applications.

Actual behavior: Copy buttons show success feedback but fail to update the system clipboard with the copied content.

Are there known steps to reproduce?

  1. Open AnythingLLM desktop app on macOS
  2. Navigate to any chat conversation with messages
  3. Click the copy button on any message OR click the copy button on any code block within a message
  4. Observe the success feedback notification
  5. Try to paste the content in another application (e.g., TextEdit, Notes, etc.) using Cmd+V
  6. Notice that the clipboard content was not actually updated

System Information:

  • Operating System: macOS
  • AnythingLLM Version: 1.8.5
  • Browser: Safari and Brave

This issue appears to be related to clipboard access permissions or clipboard API implementation on macOS specifically.

Originally created by @MessiasLima on GitHub (Oct 2, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/4470 ## How are you running AnythingLLM? Docker container ## What happened? The copy buttons in AnythingLLM are not working properly on macOS. This affects both: 1. Copy buttons on chat messages 2. Copy buttons on code blocks within messages When clicking these copy buttons, the application displays a success feedback message indicating that the content was copied to clipboard. However, the actual system clipboard is not updated with the copied content. When attempting to paste (Cmd+V) the content elsewhere, the previous clipboard content remains instead of the expected copied text. **Expected behavior**: When clicking copy buttons, the content should be successfully copied to the system clipboard and be available for pasting in other applications. **Actual behavior**: Copy buttons show success feedback but fail to update the system clipboard with the copied content. ## Are there known steps to reproduce? 1. Open AnythingLLM desktop app on macOS 2. Navigate to any chat conversation with messages 3. Click the copy button on any message OR click the copy button on any code block within a message 4. Observe the success feedback notification 5. Try to paste the content in another application (e.g., TextEdit, Notes, etc.) using Cmd+V 6. Notice that the clipboard content was not actually updated **System Information:** - Operating System: macOS - AnythingLLM Version: 1.8.5 - Browser: Safari and Brave This issue appears to be related to clipboard access permissions or clipboard API implementation on macOS specifically.
yindo closed this issue 2026-02-22 18:31:31 -05:00
Author
Owner

@timothycarambat commented on GitHub (Oct 2, 2025):

Docker container
Browser: Safari and Brave

Not a bug, you are probably hosting the container over HTTP on a non-localhost domain - where standard browser security rules prevent clipboard access, and this is the case for any page, not just AnythingLLM.

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API#security_considerations

The Clipboard API allows users to programmatically read and write text and other kinds of data to and from the system clipboard in secure contexts.

Other issues that are the same thing on this repo where we answer this:
#1781
#1631
#1509
#1376
#196
#1136

@timothycarambat commented on GitHub (Oct 2, 2025): > Docker container > Browser: Safari and Brave Not a bug, you are probably hosting the container over HTTP on a non-localhost domain - where standard browser security rules prevent clipboard access, and this is the case for any page, not just AnythingLLM. https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API#security_considerations > The Clipboard API allows users to programmatically read and write text and other kinds of data to and from the system clipboard in [secure contexts](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts). Other issues that are the same thing on this repo where we answer this: #1781 #1631 #1509 #1376 #196 #1136
yindo changed title from [BUG]: Copy buttons not working properly on macOS - clipboard not updated despite success feedback to [GH-ISSUE #4470] [BUG]: Copy buttons not working properly on macOS - clipboard not updated despite success feedback 2026-06-05 14:48:52 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2849