Skip to content

[Bug]: Sidebar context menu auto-selects a random item on right-click (regression of #285) #3698

Description

@Jardo-51

Before submitting

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

Area

apps/web

Steps to reproduce

  1. Open t3code (desktop app, v0.0.28) on Ubuntu 20.04.
  2. In the left sidebar, right-click on any project or thread.
  3. Observe the context menu that appears.

Expected behavior

The context menu should open and stay open, waiting for me to click an item.

Actual behavior

The context menu flashes on screen for a fraction of a second and then immediately closes, with a random item from the menu getting activated as if I had clicked it — without any second click from me. The opening right-click itself appears to be triggering a selection.

This is the same behavior previously reported in #285 ("Right-click menu anywhere instantly selects first option"), which was closed as completed on 2026-06-20. The fix in #3025 (the canDismissFromPointer guard in apps/web/src/contextMenuFallback.ts, first shipped in the v0.0.28 nightly line) was expected to resolve this, but the problem is still present on the v0.0.28 release — so this looks like a regression or an incomplete fix.

Impact

Minor bug or occasional failure

Version or commit

v0.0.28

Environment

Ubuntu 20.04, desktop app v0.0.28

Screenshots, recordings, or supporting files

t3code-menu-2026-07-05_10.12.55.mp4

Workaround

Instead of clicking, hold the right-button down, and move the cursor away from the menu.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions