Skip to content

Links opened from Claude Code's fullscreen TUI open twice in browser (duplicate click event) #13512

Description

@gregorkrykon

Pre-submit Checks

  • I have searched Warp bugs and there are no duplicates
  • I have searched Warp known issues page and my issue is not there

Describe the bug

When running Claude Code's fullscreen TUI (/tui fullscreen, the default renderer) inside Warp, clicking a link that Claude Code prints (e.g. a URL in its output) opens the link twice in the browser (Chrome): the first tab/navigation fires immediately, and a second identical tab/navigation fires ~0.5s later. This reproduces on every link, every time — not intermittent.

This matches a bug class already reported and confirmed upstream in Claude Code for the JetBrains reworked terminal (anthropics/claude-code#68568): a single physical mouse click is delivered to the TUI app as two separate click events, so any click-driven action (link open, click-to-expand) fires twice. That issue's author confirmed via testing that the duplicate originates from the terminal's mouse-event delivery, not from Claude Code itself deciding to double-open. Given Warp implements its own SGR mouse-reporting path for CLI-agent/TUI apps (see #6868, #12094 for other Claude-Code-mouse-handling quirks in Warp), it's likely Warp is emitting a duplicate press/release pair (or duplicate SGR mouse sequence) for a single click when a CLI-agent TUI has mouse reporting enabled.

Workarounds that avoid the bug (both lose functionality):

  • /tui default inside the Claude Code session (loses fixed bottom input/footer)
  • CLAUDE_CODE_DISABLE_MOUSE=1 before launching claude (loses in-app scroll-wheel support)

To reproduce

  1. In Warp, run claude (fullscreen TUI renderer, the default).
  2. Get Claude Code to print a clickable https:// URL in its output.
  3. Click the link once.

Expected: one browser tab opens.
Actual: two identical tabs open in Chrome, the second appearing ~0.5s after the first.

Expected behavior

A single click should produce a single link-open (one mouse-click event delivered per physical click).

Operating system (OS)

macOS

Is this an issue only in Warp?

Unconfirmed — analogous duplicate-click-event bugs are documented for the JetBrains reworked terminal (different root cause/codebase, same symptom class). Have not yet tested Claude Code's fullscreen TUI in a different macOS terminal to confirm Warp specifically is emitting the duplicate event.

Additional context

Related issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:shell-terminalTerminal input/output, shell integration, prompt behavior, and block rendering.area:terminal-inputTerminal command-line input, cursor movement, key handling, and input editing.bugSomething isn't working.needs-infoMore issue-specific reporter detail is needed before the problem can be confidently triaged.os:macmacOS-specific behavior, regressions, or requests.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.triagedIssue has received an initial automated triage pass.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions