You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature Request: webui: copy prompt with the "pasted" attachment #17834
I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
I reviewed the Discussions, and have a new and useful enhancement to share.
Feature Description
When I copy a short text (about 10 lines) into the webui, it’s pasted as a normal prompt.
If I copy a long text (around 100 lines), it’s pasted as a “pasted” prompt.
In the old webui I couldn’t press Enter on a “pasted” prompt without adding an additional message, but now I can (so it's better now!).
When I click “copy” on a normal prompt, it is copied correctly.
When I click “copy” on a “pasted” prompt, nothing happens (the clipboard stays unchanged).
Probably the prompt is empty and “pasted” is just an attachment.
Could you make it possible to copy a “pasted” prompt correctly?
Motivation
Use case: I have a long prompt that I want to use across multiple models, so I’m trying to copy it from one chat to another.
Activity
ServeurpersoCom commentedon Dec 7, 2025
Like this? That bothered me a lot too, even in Claude, because we had to do long copy-pastes of what we'd already sent.
Copy-Pasted-Only-Prompt.mp4
The basic implementation doesn't retrieve the data if there's more than one attachment or an extra message.
Ideally, it would retrieve everything like that; it could be really useful for work!
Classic prompt
...
Attach1
...
Attach2
...
jacekpoplawski commentedon Dec 7, 2025
I’ve just tested your PR and everything works. Thank you very much for fast response and the quick fix!
ServeurpersoCom commentedon Dec 7, 2025
If you want to use it before the merge, you can retrieve the last commit because I missed a build error that was causing random instability!
allozaur commentedon Dec 11, 2025
We need to improve the UX of this feature, I've added a comment in the PR. I can push the code for that, @ServeurpersoCom