Skip to content

fix: only web links open from a PR's body - #7

Open
mieky wants to merge 1 commit into
mrolafsson:mainfrom
mieky:fix/open-only-web-links
Open

mieky wants to merge 1 commit into
mrolafsson:mainfrom
mieky:fix/open-only-web-links

Conversation

@mieky

@mieky mieky commented Nov 12, 2026

Copy link
Copy Markdown

Clicking a link in a PR body passes it straight to cx.open_url, whatever the scheme. PR bodies are anyone's markdown, so [docs](file:///Applications/Calculator.app) or a custom-scheme link opens a local file or launches an app instead of a browser tab.

open() now only opens http(s) links and says why when it skips one. Every link the mod opens goes through open(), so this covers PR bodies, check links and the PR itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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