Skip to content

Copying text clears the screen on certain codepages #4391

Closed

Description

@xj-ms

Describe the bug

When copying selected text on Windows, the screen appears to reset or clear unexpectedly. This happens on my machine with codepage 936 but not when it is 437

Affected version

1.0.79-5

Steps to reproduce the behavior

  1. Change the default code page on Windows: Region -> Administrative -> Change system locale -> Chinese (Simplified, Mainland China)
  2. Launch Copilot CLI in a terminal
  3. Select and copy something

Expected behavior

The screen shouldn't be cleared

Additional context

No response

Activity

  1. added theissue type on Aug 6, 2026
  2. xj-ms commented on Aug 6, 2026

    @xj-ms
    Author

    Based on the info from #3534 , this is likely due to copying always changing the codepage to 65001

  3. added
    area:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminal
    area:terminal-renderingDisplay and rendering: flickering, scrolling, line wrapping, output formatting
    and removed on Aug 7, 2026
  4. copilot-cli-bot commented on Nov 14, 2026

    @copilot-cli-bot

    This appears to be resolved as of GitHub Copilot CLI v1.0.112. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.

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

    area:platform-windowsWindows-specific: PowerShell, cmd, Git Bash, WSL, Windows Terminalarea:terminal-renderingDisplay and rendering: flickering, scrolling, line wrapping, output formatting

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions