mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #18972] Share chat link: clipboard copy fails silently #18732
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lski-tools on GitHub (Nov 6, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/18972
Description:
When clicking "Update and Copy Link" (or "Copy Link" for new shares), the link gets created successfully but copying to clipboard fails. The success message still appears, which is misleading since nothing was actually copied.
Relevant line in code
e85c7f7931/src/lib/components/chat/ShareChatModal.svelte (L173)Environment:
I can work around this by clicking the share button again after creation, which shows the link that I can then click to open it. But the copy to clipboard functionality doesn't work.
Expected behavior:
Link should be copied to clipboard
Actual behavior:
Root cause:
Looking at
src/lib/components/chat/ShareChatModal.svelte, the non-Safari code path does this:Two problems here:
copyToClipboard()callSuggested fix:
Adding error handling would help, but a fallback would be better since clipboard access can fail for various reasons (permissions, browser policies, etc).
Simple example:
Then display
shareUrlin the modal if it's set, with a button to copy it.This way users always have a way to get the link, even if automatic clipboard access fails.
@silentoplayz commented on GitHub (Nov 6, 2025):
You're correct and I am able to confirm this issue. Either copying fails with
Update and Copy Linkor it is failing to delete the old share link, generate a new one, and copy the newly generated share link to the clipboard.Current behavior: The user needs to manually click on the
delete this linktext, followed by clicking theCopy Linkbutton again to delete the old share link for the chat, generate a new one, and copy the newly generated share link to the clipboard.Expected behavior: For the
Update and Copy Linkbutton to perform the behavior of what clicking on thedelete this linktext, followed by clicking theCopy Linkbutton does. Or in short, for it to work as expected.@tjbck commented on GitHub (Nov 6, 2025):
is this FF only? @silentoplayz I'm unable to reproduce.