Skip to content

Read-only mode copies line numbers with code, making copy-paste unusable #1388

@SunMendi

Description

@SunMendi

What happened?

When using Qwen CLI in read-only mode, code blocks are rendered with line numbers.
When copying the code, the line numbers and separator characters (│) are also copied.

This makes pasted code invalid and requires manual cleanup line-by-line.

  • Steps to Reproduce
  1. Run Qwen CLI in read-only mode
  2. Ask for code generation
  3. Copy the generated code
  4. Paste into an editor

-Actual Behavior
Copied text includes line numbers and separators:
│ 69 ...
│ 70 ...

  • Impact
    This significantly hurts developer productivity and copy-paste workflows.

-Suggested Solutions

  • Add an option to disable line numbers
  • Strip line numbers on copy
  • Provide a "copy clean code" mode or flag

What did you expect to happen?

Copied code should be clean, without line numbers or UI decorations.

Client information

Client Information

CLI Version 0.6.0 │
│ Git Commit 17eb20c
│ Model coder-model │
│ Sandbox no sandbox │
│ OS Platform linux │
│ OS Arch x64 │
│ OS Release 6.14.0-37-generic │
│ Node.js Version v24.11.1 │
│ NPM Version 11.6.2 │
│ Session ID c840cc7f-d085-4065-a1d9-13b1e93ad676 │
│ Auth Method qwen-oauth │
│ Memory Usage 339.0 MB │
│ IDE Client VS Code

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status/needs-triageIssue needs to be triaged and labeledtype/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions