Terminal mouse reporting breaks cmd-click file links inside Claude Code TUI
Open 💬 0 comments Opened Jul 3, 2026 by tayle-ms
Environment
- Claude Code 2.1.199
- Zed 1.9.0 (integrated terminal)
- macOS (darwin 25.5.0)
Summary
cmd-click on a file path printed inside the Claude Code TUI (e.g. /copy output /tmp/claude-<uid>/response.md) no longer opens it in the editor. The same path printed in a plain Zed terminal tab cmd-clicks and opens fine.
Regression
Worked in an earlier Claude Code version; broke after a recent update.
Suspected cause
Claude Code's TUI enables mouse reporting (SGR mouse mode), so the terminal emulator forwards click events to Claude Code instead of performing its own hyperlink/open action. Holding a modifier (Option/Shift) while cmd-clicking does not restore the behavior.
Expected
cmd-click on file paths in Claude Code output should open them in the host editor, as before — or provide a setting/env var to disable mouse capture.
Repro
- Open Zed integrated terminal, run
claude. - Run
/copy(or produce any output containing an absolute file path). - cmd-click the path inside the Claude Code TUI → nothing happens.
- Print/echo the same path in a non-Claude terminal tab → cmd-click opens it.