Skip to content

Copy button in GitLab Duo AI integration does not work on Linux in Firefox

Problem

The copy button in GitLab Duo AI integration is not functioning properly on Linux systems when using Firefox browser.

Peek_2025-10-30_11-29 Screenshot_From_2025-11-05_19-05-58 image

Environment

  • OS: Linux
  • Browser: Firefox
  • Feature: GitLab Duo AI integration copy functionality

Expected Behavior

The copy button should successfully copy content to the clipboard when clicked.

Actual Behavior

The copy button does not work as expected on the specified platform/browser combination.

Steps to Reproduce

Prerequisites

  • Operating System: Linux (any distribution)
  • Browser: Firefox (latest version recommended)
  • GitLab Account: Access to GitLab.com or GitLab instance with Duo AI enabled
  • GitLab Duo: Ensure you have access to GitLab Duo AI features

Reproduction Steps

  1. Open Firefox on Linux

    • Launch Firefox browser on your Linux system
  2. Navigate to GitLab

  3. Access GitLab Duo AI Integration

    • Navigate to any project or area where GitLab Duo AI is available
    • This could be:
      • Code editor/IDE integration
      • Merge request discussions
      • Issue descriptions
      • Any interface with Duo AI chat or code generation
  4. Generate AI Content

    • Interact with GitLab Duo AI to generate some content
    • This could be code suggestions, explanations, or any AI-generated text
    • Wait for the AI response to appear
  5. Attempt to Copy Content

    • Locate the copy button associated with the AI-generated content
    • Click the copy button
    • Observe the behavior

Expected Result

  • The content should be copied to the clipboard
  • A success notification or visual feedback should appear
  • The copied content should be pasteable in other applications

Actual Result

  • The copy button does not function properly
  • Content is not copied to the clipboard
  • No success feedback is shown
  • Attempting to paste elsewhere shows no copied content

Additional Testing

  • Test the same functionality in other browsers (Chrome, Edge) on the same Linux system to confirm it's Firefox-specific
  • Test on different operating systems with Firefox to confirm it's Linux-specific
  • Check browser console for any JavaScript errors when clicking the copy button

Impact

Users on Linux using Firefox cannot copy AI-generated content, affecting their workflow and productivity.

Additional Information

This appears to be a browser/OS-specific compatibility issue that may require investigation into clipboard API behavior or fallback mechanisms for this particular environment.

Edited by Miguel Rincon