Feature: add link actions to context menu (#677)#703
Feature: add link actions to context menu (#677)#703dbalders wants to merge 0 commit intopingdotgg:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Adds link-specific actions to the Electron desktop chat context menu so users can open a link or copy its address when right-clicking a link, aligning behavior with common desktop UX expectations.
Changes:
- Add “Open Link” and “Copy Link Address” entries (plus separator) when
context-menuparams indicate a link was clicked. - Import and use Electron
clipboardto support copying link addresses.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Accidentally had this on main branch and reset that which wiped this out, opening a new one. Sorry. |
What Changed
Added 2 new link-specific elements in the context menu when right-clicking a link in chat:
Image:

This was part of the request from #677. I confirmed that the main issue for #677 of links not working on Windows was resolved previously by #599, but added the quality of life improvement of the extra attributes to the context menu.
Added an if statement to the context menu event to check if what is being right clicked on is a link or not, and if so, add the 2 elements and a separator. This required adding 'clipboard' to the electron import as well.
Why
This makes link behavior more closely resemble standard UX.
UI Changes
This is a UI change specifically.
Before:

After:

Checklist
Note
Add link actions to the desktop BrowserWindow context menu to support opening and copying link URLs
Insert
Open LinkandCopy Link Addressitems into thewebContentscontext-menuhandler whengetSafeExternalUrl(params.linkURL)returns a value, callingshell.openExternalandclipboard.writeTextrespectively in main.ts.📍Where to Start
Start at the
webContentscontext-menuevent handler in apps/desktop/src/main.ts.Macroscope summarized 956c18d.