Skip to content

desktop: open OSC 8 links without the confirm prompt (0.4.2) - #17

Merged
ralyodio merged 1 commit into
mainfrom
worktree-osc8-links-no-confirm
Oct 14, 2026
Merged

ralyodio merged 1 commit into
mainfrom
worktree-osc8-links-no-confirm

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Shift+clicking an OSC 8 hyperlink popped xterm.js's default "This link could potentially be dangerous" confirm(), and then nothing opened: the default handler calls window.open() with no URL, and main's setWindowOpenHandler denies about:blank.

Adds a linkHandler to the Terminal that sends the URI to hq.openUrl (same path as plain-text URLs via WebLinksAddon; main still only opens http/https). Bumps to 0.4.2.

🤖 Generated with Claude Code

xterm.js's default OSC 8 linkHandler asks confirm() and then window.open()s
about:blank before setting location, which setWindowOpenHandler denies — so
shift+clicking a hyperlink prompted and then did nothing. Route it through
hq.openUrl like plain-text URLs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 92b1cf3 into main Oct 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant