Copy paste from editor to composer does not work

Bug identified: copying some text from an open file to composer window does not work.

Steps to reproduce: open some file (such as a python file), select any arbitrary piece spanning more than one line, then try to paste that into a composer window.

Expected behavior: the selected text is pasted into composer text area

Actual behavior: nothing happens (no text is pasted)

This bug only happens if you select more than one line in a file. If your selection begins and ends in the same line, it is successfully copied and pasted over to composer.

2 Likes

I have a hunch.

If you copy a multiline snippet from an editor window and paste it on the chat (the one that shows up when you press CMD+OPT+B on macOS), that snippet is not directly pasted into the text area but added as a piece of context to your prompt.

If you copy a single-line snippet, the reverse happens: it is directly pasted into the text area, instead of a piece of context.

So this feature works normally on the chat component, but it is not properly (if at all) implemented on the composer component.

I personally would like the copy and paste to just work as expected (directly into text area). This bothers me the most when I want to have some prompt presets, or if I want to type a longer instruction without risking mis-pressing enter before I’m done writing.

But I get where this “context-pasting” feature is coming from. It’s cool.

Suggestion: Ctrl+V does “context-pasting”, Ctrl+Shift+V does regular direct pasting,

Due to this bug, I need to use both cursor and another text editor just for that.

1 Like

I agree. Ctrl v should paste as context, Ctrl shift v should paste as regular text.

2 Likes

I don’t understand how a product charges $20 per month and does not support basic pasting of code snippets.

I have the same issue. I need to paste in a URL text input, copy that, and then paste it into composer…

This bug also in windows cursor. I can paste in editor, but can’t paste in composer or chat.