Skip to content

[Bug]: Right panel shows an all-disabled "+" add-surface menu and hijacks Cmd/Ctrl+T on Issues and Pull Requests pages #42721

Done

Description

@AymanKhan9

Area

apps/web (RightPanelTabs, /issues, /pull-requests)

Steps to reproduce

  1. Open /issues or /pull-requests in T3 Code (web or desktop) and click any issue or pull request to open the right detail panel.
  2. Observe the + ("Add panel surface") button in the right-panel tab bar.
  3. Click + or press Cmd+T / Ctrl+T (rightPanel.new).

Expected behavior

Because neither /issues nor /pull-requests supports adding any panel surfaces (all seven *Available props are false and onAddSideChat is unset), no + button should be shown and Cmd+T / Ctrl+T should not be intercepted.

Actual behavior

  • The + ("Add panel surface") button is rendered in the tab strip; clicking it opens a menu where every single item (Browser, Terminal, Files, Diff, Pull request, Linked items, Device) is disabled, with misleading thread-only tooltips (for example, Browser says "Browser previews are only available in the T3 Code desktop app." even in the desktop app).
  • RightPanelTabs attaches a capture-phase keydown listener for rightPanel.new (Mod+T) and a desktopBridge.onMenuAction listener unconditionally whenever open !== false, intercepting Cmd+T / Ctrl+T (preventDefault() + stopPropagation()) to pop open the all-disabled menu (hijacking New Tab on web).

Screenshots

Issues (/issues) Pull requests (/pull-requests)
Issues page showing + button and all-disabled menu on Ctrl+T Pull requests page showing + button and all-disabled menu on Ctrl+T

Version / Commit

main @ a05a8518f9 (Linux, Chromium 1280×800, local dev server).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions