Copying multi-line text from chat copies the pipe operators #402

Closed
opened 2026-02-16 17:26:37 -05:00 by yindo · 0 comments
Owner

Originally created by @fractalswift on GitHub (Jun 30, 2025).

Originally assigned to: @adamdotdevin on GitHub.

Mac, Ghostty terminal. I must hold shift to select text. When I paste it, it includes pipe operators that have been used as part of the terminal design.

Eg this:

Image

will be this when pasted:

 echo "Starting multi-step process..." && \   ┃
┃  ls -la && \   ┃
┃  echo "Current directory contents listed" && \   ┃
┃  pwd && \   ┃
┃  echo "Process completed successfully"

I may be doing something dumb. If not I'm happy to look into a PR for this, maybe by adding a copy button etc. Personally I do prefer to copy and use the commands myself sometimes rather than let the agent execute, especially if it's going to be a long running command or is going to have output I want to inspectg.

Originally created by @fractalswift on GitHub (Jun 30, 2025). Originally assigned to: @adamdotdevin on GitHub. Mac, Ghostty terminal. I must hold shift to select text. When I paste it, it includes pipe operators that have been used as part of the terminal design. Eg this: <img width="1086" alt="Image" src="https://github.com/user-attachments/assets/9615e66e-e325-4f44-b3f1-8d0c80995853" /> will be this when pasted:  echo "Starting multi-step process..." && \   ┃ ┃  ls -la && \   ┃ ┃  echo "Current directory contents listed" && \   ┃ ┃  pwd && \   ┃ ┃  echo "Process completed successfully" I may be doing something dumb. If not I'm happy to look into a PR for this, maybe by adding a copy button etc. Personally I do prefer to copy and use the commands myself sometimes rather than let the agent execute, especially if it's going to be a long running command or is going to have output I want to inspectg.
yindo closed this issue 2026-02-16 17:26:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#402