Description
All TUI responses are part of a collapsible cell. However, when text is selected from the cell (for example a command to be executed or text to be added to a file), the copied text includes leading bars ("|") on each line.
This makes the pasted text invalid; the bars must be removed manually.
Steps to reproduce
- Execute a command in TUI
- Select at least one complete line from a response cell
- click Copy (Mac: Cmd-C)
- Paste text in an editor window
- Observe "| " at front of every line after a copied newline
Expected behavior
- Copied text should have any leading "|" and following spaces removed before copying to the clipboard (This should apply to all copied lines)
- Line breaks should be preserved
Actual behavior
Pasted text will include "| " for each new line
Environment
- OS: Mac OS 26.31a (Tahoe)
- DeepSeek CLI version: 0.8.17
- Model: auto (deepseek 4)
- Shell: zsh
Logs or screenshots

Description
All TUI responses are part of a collapsible cell. However, when text is selected from the cell (for example a command to be executed or text to be added to a file), the copied text includes leading bars ("|") on each line.
This makes the pasted text invalid; the bars must be removed manually.
Steps to reproduce
Expected behavior
Actual behavior
Pasted text will include "| " for each new line
Environment
Logs or screenshots