[FEATURE] Recognize TERM_PROGRAM=herdr as hyperlink-capable (OSC 8)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 66/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- cli
Research direction
Find the TERM_PROGRAM detection used for OSC 8 hyperlink support and read the nearby terminal capability checks. Add herdr to the supported values, following the existing pattern for terminals such as Kaku. Done when Claude Code emits clickable OSC 8 links inside herdr panes without requiring FORCE_HYPERLINK.
Written by the indexing model from the issue text.
Description
Preflight Checklist
- I have searched existing requests and this feature hasn't been requested yet
- This is a single feature request (not multiple features)
Problem Statement
herdr, a terminal multiplexer, renders OSC 8 hyperlinks, but Claude Code doesn't recognise it as hyperlink-capable, so links in its output aren't clickable inside herdr panes.
herdr replaces the outer terminal's identity in each pane with its own:
TERM_PROGRAM=herdr
TERM_PROGRAM_VERSION=0.9.3
HERDR_ENV=1
TERM=xterm-256color
COLORTERM=truecolor
Since hyperlink detection keys on TERM_PROGRAM, the outer terminal's support (iTerm2 in my case) is hidden, and Claude Code falls back to plain text even though herdr passes the links through.
Proposed Solution
Add herdr to the TERM_PROGRAM values Claude Code treats as supporting OSC 8 hyperlinks, the same way #96923 asks for Kaku.
Alternative Solutions
Setting FORCE_HYPERLINK=1 works: links become clickable in herdr. But setting it in Claude Code's env settings forces links in every terminal, including ones that can't render them. I currently scope it with a shell guard instead:
if set -q HERDR_ENV
set -gx FORCE_HYPERLINK 1
end
That works, but every herdr user needs to find and apply it themselves, and it only takes effect for sessions launched from a configured shell.
Priority
Low - Nice to have
Feature Category
Interactive mode (TUI)
Use Case Example
- Run Claude Code inside a herdr pane.
- Claude cites a file, a PR or a docs page.
- Today the link is plain text, so I copy it by hand. With herdr recognised, I'd click it, as in a bare iTerm2 window.
Additional Context
- Claude Code 2.1.287, herdr 0.9.3, macOS 27.0.1, iTerm2 as the outer terminal.
- Related herdr detection gaps: #98832 (unrecognized
TERM_PROGRAM=herdrslows startup) and #101306 (kitty graphics rejected under libghostty-based terminals like herdr). A shared fix for recognising herdr would likely cover all three. - Same pattern for another terminal: #96923 (Kaku).
- In contrast to #83508,
FORCE_HYPERLINK=1is honoured here, so the rendering path works; only detection is missing.
- Dominant language
- TypeScript
- Stars
- 154k
- Forks
- 26.1k
- Avg merge
- 18h 34m
- Merged PRs (30d)
- 12
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anthropics/claude-code
-
area:agents area:cost bug platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
anthropics/claude-code#105375 ·
Maintainers usually reply within 1 day
-
area:agent-view area:cli bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
anthropics/claude-code#105317 ·
Maintainers usually reply within 1 day
-
area:model area:sandbox bug data-loss
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anthropics/claude-code#105298 ·
Maintainers usually reply within 1 day
-
area:docs bug documentation platform:linux
Difficulty 1/5 Under an hour Newbie friendliness 85/100
anthropics/claude-code#105297 ·
Maintainers usually reply within 1 day
-
area:plugins area:tui bug platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
anthropics/claude-code#105211 ·
Maintainers usually reply within 1 day
All issues in anthropics/claude-code
Similar issues
-
Plugin: sheet music can't be scrolled by hand before playbackPossibly taken @snakajima claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
receptron/jinglescript#51 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 9 days
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openclaw/openclaw#186424 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
chore(worker): five module header comments describe the code from before later issues changed itOpenarea:dev U2-later
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bentleypark/aiwatch#1824 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Pal-AI-Lab/Coopanion#469 ·
Maintainers usually reply within 1 day