hermes - 💡(How to fix) Fix Terminal tool output URLs are not clickable in Ghostty (Cmd+Click)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

URLs output by Hermes through the terminal tool (and TUI response rendering) are not clickable via Cmd+Click in Ghostty terminal emulator. Bare URLs typed directly in a shell work fine.

Root Cause

Hermes wraps tool output with ANSI formatting codes (via Ink/Rich rendering pipeline). Ghostty's link detector (link-url = true) can only identify bare/unformatted URLs — when the text is surrounded by ANSI escape sequences, the URL regex match fails.

SourceFormatCmd+Click works?
User types echo "https://example.com" in shellBare text
Hermes terminal tool outputANSI-formatted
Hermes TUI assistant responseRich markdown rendered
RAW_BUFFERClick to expand / collapse

Description

URLs output by Hermes through the terminal tool (and TUI response rendering) are not clickable via Cmd+Click in Ghostty terminal emulator. Bare URLs typed directly in a shell work fine.

Root Cause

Hermes wraps tool output with ANSI formatting codes (via Ink/Rich rendering pipeline). Ghostty's link detector (link-url = true) can only identify bare/unformatted URLs — when the text is surrounded by ANSI escape sequences, the URL regex match fails.

SourceFormatCmd+Click works?
User types echo "https://example.com" in shellBare text
Hermes terminal tool outputANSI-formatted
Hermes TUI assistant responseRich markdown rendered

Reproduction

  1. Use Ghostty with link-url = true
  2. Run hermes --tui
  3. Ask Hermes to output a URL (e.g. "echo https://example.com")
  4. Cmd+Click the URL → nothing happens
  5. Run echo "https://example.com" directly in a new Ghostty tab → Cmd+Click works

Suggested Fix

Strip ANSI formatting codes from URLs before they enter the terminal output stream, or emit URLs as OSC 8 hyperlinks (\e]8;;URL\e\\TEXT\e]8;;\e\\) which Ghostty supports natively and which survive surrounding formatting.

Environment

  • Hermes version: latest (main branch)
  • Terminal: Ghostty 1.3.1 (macOS)
  • Config: link-url = true in ghostty config
  • Platform: macOS 26.4.1

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Terminal tool output URLs are not clickable in Ghostty (Cmd+Click)