Skip to content

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

Description

@bjmckenz

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions