CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

Text copied from cell includes nesting bars ("|")

Open bjmckenz opened this issue 6 months ago • 5 comments

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

  1. Execute a command in TUI
  2. Select at least one complete line from a response cell
  3. click Copy (Mac: Cmd-C)
  4. Paste text in an editor window
  5. Observe "| " at front of every line after a copied newline

Expected behavior

  1. Copied text should have any leading "|" and following spaces removed before copying to the clipboard (This should apply to all copied lines)
  2. 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

Image Image

bjmckenz avatar May 09 '26 01:05 bjmckenz

Is there a use case in which the glyphs are useful?

bjmckenz avatar May 09 '26 01:05 bjmckenz

Similar to #1212, previous PRs did not resolve this issue.

douglarek avatar May 09 '26 01:05 douglarek

thanks for referencing.

bjmckenz avatar May 09 '26 01:05 bjmckenz

thanks for referencing.

Perhaps I misled you. Considering the original issue has been closed, you can reopen this one.

douglarek avatar May 09 '26 01:05 douglarek

Similar to #1212, previous PRs did not resolve this issue.

我的 PR #1239 有解决,等待合并ing。

Oliver-ZPLiu avatar May 09 '26 09:05 Oliver-ZPLiu