Skip to content

Git Error Message Can't Be Copied #22913

Open

Description

@WordlessMeteor

The problem

Pressing Ctrl + C doesn't copy the text in an inline-terminal window of an error window. Pressing Ctrl + Shift + C or Enter doesn't work, either.
I was cloning a repository, but the clone failed many times. I wanted to ask what this error means, but I can't copy the message.

Release version

3.6.7-beta2 (x64)

Operating system

Windows 11 Pro for Workstations Insider Preview. Build 26340.9502.ge_prerelease_im.260912-1814

Steps to reproduce the behavior

  1. Clone WordlessMeteor/LoL-Dragon-Change-S16.
  2. An error message pops up.
  3. Copy the error message in the inline terminal.

Or just try to copy any error message in any inline terminal.

Log files

2026-09-22.desktop.beta.log

Screenshots

Image

Additional context

No response

Activity

  1. desktop-triage commented on Sep 22, 2026

    @desktop-triage

    Triage summary: This is a bug report — the user describes concrete, specific behavior (Ctrl+C, Ctrl+Shift+C, and Enter all fail to copy selected text from the inline-terminal used to show git error output) with clear repro steps, version (3.6.7-beta2), OS, and a log file/screenshot attached. It's related to prior "can't copy error text" reports (#21785, closed as fixed; #22591, still open) but those affect the plain-text "Commit Failed" modal, not the xterm-based inline terminal used for other git errors (e.g. clone failures), so I'm treating this as a distinct issue rather than a duplicate. Suggesting bug and priority-3, since a workaround exists (the attached log file contains the same error text) and it affects a specific UI surface rather than a core function.

    Initial hypothesis: The inline terminal used to render git error output is the Terminal component in app/src/ui/terminal.tsx, which wraps @xterm/xterm and is invoked from app-error.tsx to display raw git error text. The component only customizes keyboard handling to block the Tab key (to preserve dialog tab navigation) and otherwise defers entirely to xterm.js's built-in key handling (attachCustomKeyEventHandler returns true for every other key, including Ctrl+C). There is no explicit clipboard/copy handling (no clipboard.writeText, execCommand('copy'), or selection-to-clipboard logic) anywhere in terminal.tsx. Since this terminal is read-only and never attached to a real pty, xterm.js's default Ctrl+C interception (normally meant to forward the keystroke to a shell process) may be swallowing the browser's native copy shortcut instead of falling back to copy-selection behavior, and no custom handler compensates for that in this read-only context. This would explain why Ctrl+C, Ctrl+Shift+C, and Enter all fail — they're all being intercepted by xterm's key handling with no code path that maps them to a clipboard copy action.

    Generated by Issue Triage (skills-driven) for #22913 · auto · 66.7 AIC · ⌖ 1.21 AIC · ⊞ 7.7K · ◷

  2. added
    bug
    priority-3
    on Sep 22, 2026
  3. added a commit that references this issue on Oct 3, 2026
  4. PtJade-Ceramic commented on Nov 2, 2026

    @PtJade-Ceramic
    Contributor

    BTW this should be a feature request.

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

    bugpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions