Skip to content

cmd+click open links twice #3580

Description

@JasonYeMSFT

Describe the bug

I have developed the habbit of cmd+click to open links from a VS Code terminal on mac because the default behavior of links in the terminal output is that

  • click does nothing
  • cmd+click opens it in the browser

For Copilot CLI, the behavior is different:

  • click opens the link in the browser - this is different from VS Code but it's good
  • cmd+click opens the link twice in the browser - not expected

Affected version

1.0.56

Steps to reproduce the behavior

  1. Ask Copilot CLI to echo a link in a VS Code terminal
  2. click the link
  3. cmd+click the link

Like what this screenshot indicates

Image

Expected behavior

I expect the link to be opened only once.

Additional context

No response

Activity

  1. added theissue type on May 29, 2026
  2. devm33 commented on May 30, 2026

    @devm33
    Member

    This is a bug in the VS Code integrated terminal. The terminal should not send the SGR mouse events to the CLI application when handling the click natively. cc @anthonykim1

  3. added
    area:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input
    on May 30, 2026
  4. billythekid commented on Jul 16, 2026

    @billythekid
    Member

    👍 This also happens in embedded terminals in Jetbrains IDEs, RubyMine etc. Copilot thinks this is the same thing

    Same root cause (OSC-8 + visible URL both handled).

    straight click OR cmd-click opens 2 tabs for me

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:input-keyboardKeyboard shortcuts, keybindings, copy/paste, clipboard, mouse, and text input

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions