[BUG] Ctrl+click on a link in Claude Code's output opens 2 duplicate browser tabs (xfce4-terminal)

Open 💬 3 comments Opened Jul 9, 2026 by plittlefield

What's Wrong?

Ctrl+clicking a URL printed by Claude Code in its response text opens two duplicate tabs in the browser, both pointing at the same URL.

This is specific to links rendered by Claude Code - a plain echo "https://example.com" printed directly in the same terminal, Ctrl+clicked, opens exactly one tab. Calling exo-open <url> directly from the shell also opens exactly one tab. So the browser and the OS's URL handler are both behaving correctly - the duplication only happens for links that Claude Code itself renders.

What Should Happen?

Ctrl+clicking a link in Claude Code's output should open exactly one browser tab, the same as it does for a plain URL printed by any other command in the same terminal.

Steps to Reproduce

  1. In xfce4-terminal, run echo "https://example.com" and Ctrl+click the printed URL - confirm it opens exactly one browser tab.
  2. Start claude and ask it to print or return a URL in its response (e.g. ask it to summarise a web page, or in my case, have it confirm a link after performing a task - https://wiki.indie-it.com/index.php/Artificial_Intelligence).
  3. Ctrl+click that same URL as rendered in Claude Code's chat output.
  4. Two duplicate tabs open in the browser, both loading the same URL.

Note: this was isolated by testing with both of xfce4-terminal's own URL-matching settings (MiscHighlightUrls and MiscHyperlinksEnabled) individually disabled - the duplicate persisted in both cases when clicking a Claude Code-rendered link, but never occurred for a plain echo'd URL regardless of those settings. This points to Claude Code's own hyperlink rendering (likely the OSC 8 escape sequence it emits around printed URLs) producing two overlapping or adjacent clickable regions for the same visible text, rather than anything terminal- or browser-side.

Claude Model

claude-sonnet-5 / high effort

Is this a regression?

I don't know

Claude Code Version

2.1.205 (Claude Code)

Platform

Anthropic API

Operating System

Other Linux (Linux Mint 22.3 / Ubuntu 24.04 Noble base)

Terminal/Shell

Xterm (closest match - actual terminal is xfce4-terminal 1.1.3-1build1, VTE 0.76)

Additional Information

  • Browser: Brave (single running instance throughout testing, confirmed only one x-scheme-handler/https MIME handler registered - brave-browser.desktop - so no duplicate default-browser registration involved)
  • ~/.config/xfce4/terminal/terminalrc relevant settings during testing: MiscHighlightUrls and MiscHyperlinksEnabled each toggled independently, duplicate persisted for Claude Code links in every combination
  • A direct exo-open <url> shell call (bypassing terminal click handling entirely) opens exactly one tab, confirming the browser/OS opener is not at fault
  • Happy to provide further diagnostics (e.g. raw terminal escape sequence capture around a Claude Code-printed link) if useful

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗