Skip to content

(fix) Add copy link to desktop context menu - #1532

Merged
ymichael merged 4 commits into
get-bb:mainfrom
MateoCerquetella:agent/copy-chat-links
Aug 21, 2026
Merged

ymichael merged 4 commits into
get-bb:mainfrom
MateoCerquetella:agent/copy-chat-links

Conversation

@MateoCerquetella

@MateoCerquetella MateoCerquetella commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add a native Copy Link action when the desktop context menu opens over a link
  • preserve the existing Copy action when link text is selected
  • cover the combined link-and-selection menu behavior with a regression test

Root cause

The desktop shell replaces Chromium's native context menu, but its custom menu builder ignored Electron's linkURL context. As a result, right-clicking a Markdown link in chat only exposed text-selection actions.

Before

Chat link context menu missing Copy Link

After

image

Validation

  • pnpm exec turbo run test --filter=@bb/desktop --force — 33 files, 250 tests passed
  • pnpm exec turbo run typecheck --filter=@bb/desktop
  • pnpm exec prettier --check apps/desktop/src/desktop-context-menu.ts apps/desktop/test/desktop-context-menu.test.ts

@MateoCerquetella
MateoCerquetella marked this pull request as ready for review August 13, 2026 13:48
@MateoCerquetella MateoCerquetella changed the title Add copy link to desktop context menu (bug) Add copy link to desktop context menu Aug 13, 2026
@MateoCerquetella MateoCerquetella changed the title (bug) Add copy link to desktop context menu (fix) Add copy link to desktop context menu Aug 13, 2026
@ymichael ymichael self-assigned this Aug 21, 2026
@ymichael
ymichael merged commit 121dad4 into get-bb:main Aug 21, 2026
12 checks passed
@fdx-peter fdx-peter mentioned this pull request Aug 26, 2026
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.

2 participants