Statusline OSC 8 links with custom URI schemes (e.g. vscode://) aren't dispatched on click in `claude agents` / FleetView

Status Fixed / completed
Reported on v2.1.174
Maintainer reply ✓ Yes — bcherny
Activity 3 comments · opened Jun 13, 2026 · closed Aug 19, 2026
💡 Likely answer: A maintainer (bcherny, collaborator) responded on this thread — see the highlighted reply below.

What happened

A custom statusline emits an OSC 8 hyperlink whose target is a custom URI scheme, e.g. an "Open in VS Code" link pointing at vscode://file/<absolute-path>.

  • In the interactive claude TUI, clicking the link works — the terminal hands vscode:// to the OS and VS Code opens at the folder.
  • After switching to claude agents (FleetView), the same statusline link still renders (underlined), but clicking it does nothing. http(s):// links appear to work; custom OS-registered schemes (vscode://, cursor://, etc.) are not dispatched.

The scheme is valid and registered at the OS level (open "vscode://file/<path>" succeeds), and it works from the normal TUI — so this is specific to how FleetView handles clicks on custom-scheme OSC 8 links.

Expected

FleetView dispatches clicks on OSC 8 hyperlinks with custom URI schemes the same way the interactive TUI does (hand the URL to the OS handler), or documents that only http(s):// is supported there.

Repro

  1. Add a statusline that prints an OSC 8 link to vscode://file/<absolute-folder-path> (label e.g. "Open in VS Code").
  2. In the interactive claude TUI, click it → VS Code opens. ✅
  3. Switch to claude agents / FleetView, click the same link → nothing happens. ❌

Environment

  • Claude Code 2.1.174
  • macOS
  • VS Code installed; vscode:// registered (confirmed via open)

Notes

Possibly related to #23438 (OSC 8 rendering in tmux), but distinct: here the link renders correctly and the issue is click dispatch for non-http(s) schemes in FleetView specifically.

View original on GitHub ↗

3 Comments

github-actions[bot] · 4 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/63204
  2. https://github.com/anthropics/claude-code/issues/42519

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

bcherny collaborator · 1 month ago

Fixed in 2.1.178 — changelog: "Fixed statusline links with custom URI schemes (e.g. vscode://) not opening when clicked in claude agents" (https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md). Closing — reply to reopen if it still happens on the latest version.

🤖 Generated with Claude Code

github-actions[bot] · 4 days ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.