Skip to content

Paste regression on GNOME Wayland in 1.0.49 (worked in 1.0.48) #3414

@luoqianlin

Description

@luoqianlin

Describe the bug

Text paste in the Copilot CLI prompt regressed on Ubuntu GNOME Wayland after upgrading to 1.0.49.

This worked on the same machine with 1.0.48 and earlier, but after updating to 1.0.49, paste inside the Copilot CLI prompt no longer works as expected.

From local investigation, the terminal-level paste path is still functional, but Copilot CLI 1.0.49 appears to trigger clipboard-related code paths that now fail under GNOME Wayland / Mutter with:

writeToClipboard: native clipboard write failed; relied on OSC 52
Failed to get clipboard attachment file path: Error: Failed to get files: Failed to query MIME types:
A required Wayland protocol (ext-data-control, or wlr-data-control version 1) is not supported by the compositor
Failed to write clipboard image to disk: Error: Failed to get image: Failed to query MIME types:
A required Wayland protocol (ext-data-control, or wlr-data-control version 1) is not supported by the compositor

This looks like a regression introduced in 1.0.49: the same environment did not show these errors on 1.0.48.

Affected version

GitHub Copilot CLI 1.0.49

Steps to reproduce the behavior

  1. Use Ubuntu GNOME on Wayland.
  2. Open GNOME Terminal.
  3. Start copilot.
  4. Try pasting text into the prompt.
  5. Observe that paste inside Copilot CLI no longer behaves correctly after upgrading to 1.0.49.
  6. Inspect ~/.copilot/logs/process-*.log and observe repeated Wayland clipboard protocol errors.

Expected behavior

Text paste in the Copilot CLI prompt should continue to work on GNOME Wayland as it did in 1.0.48, without attempting clipboard operations that fail because of unsupported compositor protocols.

Additional context

Environment:

  • OS: Ubuntu 24.04.4 LTS
  • Session: Wayland
  • Desktop: GNOME
  • Terminal: GNOME Terminal
  • Input method: fcitx5
  • Copilot CLI:
    • 1.0.48: worked
    • 1.0.49: broken

Notes from local investigation:

  • copilot points to the real binary, no shell wrapper involved.
  • PreeditEnabledByDefault=False in fcitx5 was already set for a separate preedit visibility workaround; changing it does not fix this paste regression.
  • Injecting bracketed paste sequences manually into the TTY still inserts text, which suggests the underlying terminal paste path still exists.
  • The regression seems tied to new clipboard handling introduced or exercised by 1.0.49, not to a general terminal paste failure.

Relevant local evidence:

  • 1.0.43: no related clipboard / Wayland protocol errors in logs
  • 1.0.48: no related clipboard / Wayland protocol errors in logs
  • 1.0.49: repeated Failed to get clipboard attachment file path / writeToClipboard / A required Wayland protocol ... errors

Potentially related issue:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text inputarea:platform-linuxLinux-specific: Wayland, X11, Ubuntu, Fedora, Alpine, ARM, terminal emulators

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions