Skip to content

[Bug]: Selecting text in terminal with LMB should not spawn any menus #16114

Closed

Description

@vertopolkaLF

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/desktop

Steps to reproduce

  1. Select any text in the terminal
  2. Press CTRL+C

Expected behavior

text being copied normally

Actual behavior

on finishing text selection menu appears that actively blocks CTRL+C from copying selected text.

Impact

Minor bug or occasional failure

Version or commit

0.0.46-nightly.20261005.2676

Environment

Windows 11

Logs or stack traces

Screenshots, recordings, or supporting files

2026-10-05-19_15_15-T3_Code_(Nightly)-TDlqR8rkfV.png

Workaround

No response

Activity

  1. added
    bugSomething is broken or behaving incorrectly.
    needs-triageIssue needs maintainer review and initial categorization.
    on Oct 5, 2026
  2. vertopolkaLF commented on Oct 5, 2026

    @vertopolkaLF
    Author

    Even if it's a minor bug - it infuriates me every time I encounter it. It breaks my muscle memory for no reason

  3. juliusmarminge commented on Oct 5, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    Triage

    Thanks for the report and the screenshot, @vertopolkaLF! I reproduced this on current main. It's the post-selection popup, not the right-click menu.

    What I found

    • Finishing a left-button selection in the terminal calls showSelectionAction in apps/web/src/components/ThreadTerminalDrawer.tsx, which opens a context menu at the pointer with Add to chat and Copy (terminalSelectionMenuItems), matching your screenshot. The right-click menu offers the same actions plus Paste.
    • On desktop that's a native Electron menu (localApi.contextMenu.show → ElectronMenu.showContextMenu → Menu.popup) with no accelerators. A native menu captures keyboard input until it closes, so Ctrl+C never reaches the terminal. Windows copy is handled by isTerminalCopyShortcut in apps/web/src/terminal/ghostty/surface.ts, which doesn't run while the popup is open.

    Workaround for now: click Copy in the popup, or press Escape to dismiss it and then Ctrl+C. Right-click → Copy also works.

    Likely fix area

    Options include not opening a modal menu on left-button selection (keeping Add to chat / Copy / Paste on right-click), or, if a select-time Add to chat affordance stays, making it non-modal like the chat Cite button so Ctrl+C still goes to the terminal.

    A maintainer will decide on the fix direction.

  4. added
    via-triageFiled through npx t3 triage
    and removed
    needs-triageIssue needs maintainer review and initial categorization.
    on Oct 5, 2026
  5. kshanxs commented on Oct 5, 2026

    @kshanxs
    Contributor

    I'm facing the same issue on my Macbook Air M4(macos 27.0.1)

  6. vertopolkaLF commented on Oct 22, 2026

    @vertopolkaLF
    Author

    https://github.com/user-attachments/assets/61af7dfc-feea-4539-a068-af462b2a8819 - video. in the first selection I am pressing CTRL+C multiple times

    the menu appears right at the end of selection. this exact menu also blocks CTRL+C behaviour

    Version: 0.1.2-nightly.20261021.3499
    OS: Windows 11 Pro 24H2 26100.8328
    Terminal is Powershell i guess

  7. juliusmarminge commented on Oct 22, 2026

    @juliusmarminge
    Member

    Reproduced the automatic selection menu on current main a50cd989ae in Linux Chromium 154 with the real web dev server and isolated state: printed ISSUE16114_SELECTION_PROBE, then selected it with a left-button double-click. The Add to chat / Copy menu opened after selection. The supplied recording shows the same menu on Windows desktop; Windows native clipboard behavior is not verified here.

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

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions