Skip to content

fix(desktop): add Copy Link action for chat links#1835

Open
Klemencina wants to merge 1 commit intopingdotgg:mainfrom
Klemencina:fix/copy-link-address-context-menu
Open

fix(desktop): add Copy Link action for chat links#1835
Klemencina wants to merge 1 commit intopingdotgg:mainfrom
Klemencina:fix/copy-link-address-context-menu

Conversation

@Klemencina
Copy link
Copy Markdown

@Klemencina Klemencina commented Apr 8, 2026

What Changed

Adds a desktop-only Copy Link action to the native context menu for safe http/https links in chat output.

When right-clicking a chat link in the desktop app, the context menu now shows Copy Link, which copies the clicked URL to the clipboard.

Why

Fixes the missing link-copy action reported in #677.

This is intentionally narrower than #772. It only addresses the missing copy behavior and does not add Open Link or any other link actions.

UI Changes

Before:

  • Right-clicking a chat link did not offer a link-copy action
    photo_2026-04-08_18-00-58

After:

  • Right-clicking a safe http/https chat link shows Copy Link
    photo_2026-04-08_18-01-43

Checklist

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

Note

Add 'Copy Link' context menu action for chat links in the desktop app

Adds a 'Copy Link' item to the right-click context menu in main.ts when the clicked target has a URL that passes getSafeExternalUrl. The URL is written to the system clipboard using Electron's clipboard module, followed by a separator in the menu.

Macroscope summarized b003d3a.

- Show a Copy Link item for safe external URLs
- Copy the clicked link URL to the clipboard
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 8, 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: 316d1851-924e-4a88-ada4-8541438d6c93

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

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 vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Apr 8, 2026
@macroscopeapp
Copy link
Copy Markdown
Contributor

macroscopeapp bot commented Apr 8, 2026

Approvability

Verdict: Approved

Simple UI enhancement adding a "Copy Link" context menu option for links. The change is self-contained, follows existing patterns, uses existing URL validation, and only adds standard clipboard functionality with no security or behavioral concerns.

You can customize Macroscope's approvability policy. Learn more.

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

Labels

size:XS 0-9 changed lines (additions + deletions). 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.

1 participant