Skip to content

Feature: add link actions to context menu (#677)#703

Closed
dbalders wants to merge 0 commit intopingdotgg:mainfrom
dbalders:main
Closed

Feature: add link actions to context menu (#677)#703
dbalders wants to merge 0 commit intopingdotgg:mainfrom
dbalders:main

Conversation

@dbalders
Copy link
Copy Markdown
Contributor

@dbalders dbalders commented Mar 9, 2026

What Changed

Added 2 new link-specific elements in the context menu when right-clicking a link in chat:

  • Open Link
  • Copy Link Address

Image:
Screenshot 2026-03-09 at 9 08 20 AM

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:
Screenshot 2026-03-09 at 9 10 37 AM

After:
Screenshot 2026-03-09 at 9 08 20 AM

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes

Note

Add link actions to the desktop BrowserWindow context menu to support opening and copying link URLs

Insert Open Link and Copy Link Address items into the webContents context-menu handler when getSafeExternalUrl(params.linkURL) returns a value, calling shell.openExternal and clipboard.writeText respectively in main.ts.

📍Where to Start

Start at the webContents context-menu event handler in apps/desktop/src/main.ts.

Macroscope summarized 956c18d.

Copilot AI review requested due to automatic review settings March 9, 2026 16:31
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 9, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 5f0f128b-eeae-4642-9fb8-d23f09a2bd30

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the vouch:unvouched PR author is not yet trusted in the VOUCHED list. label Mar 9, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-menu params indicate a link was clicked.
  • Import and use Electron clipboard to support copying link addresses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dbalders
Copy link
Copy Markdown
Contributor Author

Accidentally had this on main branch and reset that which wiped this out, opening a new one. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants