Skip to content

Tag/Chip for Pasted Text #2347

Open
Open

Description

@ngafar

When the user pastes a large body of text we should show a chip (like we do when you tag a variable). This way the input box/message area is not flooded with pasted text.

This was inspired by both ChatGPT and Claude. We really only need to do this if the pasted text is egregiously large (say, > 250 words).

Activity

  1. Aayan-Ali-Hashim commented on Jul 6, 2026

    @Aayan-Ali-Hashim

    When the user pastes a large body of text we should show a chip (like we do when you tag a variable). This way the input box/message area is not flooded with pasted text.

    This was inspired by both ChatGPT and Claude. We really only need to do this if the pasted text is egregiously large (say, > 250 words).

    I think I got it what are you trying to say.
    You want to see a card [pasted text] not the whole text?
    Am I right?
    But in Claude and ChatGPT both, the pasted text is completely shown with a scroll bar next to it. The behavior of Mito is also similar to Claude and ChatGPT.

  2. ngafar commented on Jul 6, 2026

    @ngafar
    CollaboratorAuthor

    This is what I had in mind:

    Image
  3. Aayan-Ali-Hashim commented on Jul 6, 2026

    @Aayan-Ali-Hashim

    This is what I had in mind:

    Image

    I got your point. When I tested pasting text on Claude, I didn't found this paste card.
    Let's see what @aarondr77 says about this.
    If he agrees, then I will start working on this issue.

  4. aarondr77 commented on Jul 6, 2026

    @aarondr77
    Member

    Hey @Aayan-Ali-Hashim yeah that looks awesome!

    It would be nice to use this card only when pasting large blocks of text as @ngafar called out in the original issue.

  5. Aayan-Ali-Hashim commented on Jul 6, 2026

    @Aayan-Ali-Hashim

    That's great.
    Jumping in the issue,
    @ngafar Can you please confirm at how much words this card should appear?

  6. Aayan-Ali-Hashim commented on Jul 6, 2026

    @Aayan-Ali-Hashim
    Image

    like this?

    This is the changes I have made

  7. Aayan-Ali-Hashim commented on Jul 6, 2026

    @Aayan-Ali-Hashim

    Kindly confirm me, so I can open the pull request.

  8. aarondr77 commented on Jul 6, 2026

    @aarondr77
    Member

    That's a good start. I wonder if we can improve the design a bit. I think almost all of these can be resolved by just re-using the Context Cards classes that we use for the Notebook tile that you can see in this image. A few notes:

    1. It doesn't need to take up the entire width of the chat input and it should be the same height as the Notebook card.
    2. When you hover over it, it would be great to show the first 250 characters of the text in the tooltip
    3. We should use a different icon for pasted text. You could use the same icon that we use for Text Cells in the NotebookFooter component.
  9. Aayan-Ali-Hashim commented on Jul 6, 2026

    @Aayan-Ali-Hashim

    Thanks Aaron, for explaining in such depth.
    I got your requirements

  10. Aayan-Ali-Hashim commented on Jul 7, 2026

    @Aayan-Ali-Hashim
    Image

    Just like this ? Now the Notebook and Paste both are of same size. Should both be in the same line? Or should I shift the paste card in the next line?

  11. aarondr77 commented on Jul 7, 2026

    @aarondr77
    Member

    Hey @Aayan-Ali-Hashim that spacing looks great.

    I think the only remaining changes are:

    1. We should use a different icon for pasted text. You could use the same icon that we use for Text Cells in the NotebookFooter component.
    2. Instead of using that pink color, can we keep the original purple styles
  12. Aayan-Ali-Hashim commented on Jul 7, 2026

    @Aayan-Ali-Hashim

    I got it. I was working on these. In just few minutes I will open the PR.

  13. Aayan-Ali-Hashim commented on Jul 7, 2026

    @Aayan-Ali-Hashim

    @aarondr77 Ok now ?

    Image
  14. vivekml251me163 commented on Aug 10, 2026

    @vivekml251me163

    Is this issue still open ?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions