GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Copy Link is missing from the chat link context menu · Issue #4155 · pingdotgg/t3code

Copy Link is missing from the chat link context menu #4155

New issue
Copy link
New issue
Copy link
Closed
#4161
Closed
Copy Link is missing from the chat link context menu#4155
#4161
Copy link
Labels
enhancementRequested improvement or new capability.🚧 In Progress

Description

@caezium
caezium
opened on Jul 19, 2026
Issue body actions

Problem

Right-clicking an HTTP(S) link in a chat message no longer offers Copy Link when the integrated browser is available. The same action was previously added by #1835 for #677, but the newer chat-specific menu replaces the native desktop menu with only Open in integrated browser and Open in system browser.

This makes copying a destination unnecessarily awkward and creates inconsistent behavior depending on whether preview support is active.

Root Cause Analysis

Preview-capable chat links now intercept the browser context-menu event and display a renderer-owned menu. Because the native event is suppressed, the desktop shell never gets a chance to add its existing safe-link copy action. The replacement menu recreated the two open actions but omitted the copy action.

The interception is also broader than the intended external-web-link behavior, so fragment links and non-HTTP schemes can receive browser-opening actions that do not apply to them.

TDD Fix Plan

  1. RED Add a focused interaction test proving that the preview-capable HTTP(S) link menu contains Open in integrated browser, Open in system browser, and Copy Link, while canceling performs no action.
    GREEN Define the complete external-link menu in one tested interaction boundary and use it from chat markdown.

  2. RED Add a test proving that choosing Copy Link writes the exact destination to the clipboard without invoking either open action, and that clipboard failures are reported through the existing markdown-action error path.
    GREEN Route the new action through the existing clipboard helper and error handling.

  3. RED Add coverage proving that fragments and non-HTTP schemes are not intercepted by the preview-specific web-link menu.
    GREEN Limit the custom menu to HTTP(S) destinations and preserve the native/default context-menu behavior for everything else.

REFACTOR Keep the native desktop fallback unchanged, centralize the renderer menu/action logic, and preserve the existing integrated-browser and system-browser behavior.

Acceptance Criteria

  • Right-clicking an HTTP(S) chat link with preview support shows Copy Link.
  • Choosing Copy Link copies the exact link destination.
  • Copying does not open the link in either browser.
  • Existing integrated-browser and system-browser actions still work.
  • Canceling the menu performs no action.
  • Clipboard failures use the existing markdown interaction error reporting.
  • Fragment links and non-HTTP links retain their normal context-menu behavior.
  • Focused automated tests cover the menu choices and action routing.
Reacted by Jaroslav Brtis

Activity

  1. juliusmarminge
    added
    enhancementRequested improvement or new capability.
    🚧 In Progress
    on Jul 20, 2026
  2. juliusmarminge commented on Jul 20, 2026

    @juliusmarminge
    juliusmarminge
    on Jul 20, 2026
    Member
    More actions

    PR #4161 has been refreshed without opening a new PR: branch codex/refresh-pr-4161 at commit 8f19cb6a20. Real-app before/after verification proves exact URL copying without opening a browser; focused checks pass. Status remains 🚧 In Progress until merge.

  3. juliusmarminge
    closed this as completedin #4161on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequested improvement or new capability.🚧 In Progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.