Skip to content

Feature Request: webui: copy prompt with the "pasted" attachment #17834

Closed

Description

@jacekpoplawski

Prerequisites

  • I am running the latest code. Mention the version if possible as well.
  • I carefully followed the README.md.
  • 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.

Possible Implementation

No response

Activity

  1. added
    enhancement
    on Dec 6, 2025
  2. ServeurpersoCom commented on Dec 7, 2025

    @ServeurpersoCom
    Contributor

    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
    Image

    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
    ...

  3. self-assigned this
    on Dec 7, 2025
  4. jacekpoplawski commented on Dec 7, 2025

    @jacekpoplawski
    ContributorAuthor

    I’ve just tested your PR and everything works. Thank you very much for fast response and the quick fix!

  5. ServeurpersoCom commented on Dec 7, 2025

    @ServeurpersoCom
    Contributor

    I’ve just tested your PR and everything works. Thank you very much for fast response and the quick fix!

    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!

  6. allozaur commented on Dec 11, 2025

    @allozaur
    Contributor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementserver/webui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions