Skip to content

TUI: explorer context menu doesn't auto-dismiss after clicking an entry #456

Description

@JDonaghy

Problem

Right-clicking a file in the TUI explorer opens the context menu correctly (#451 fixed this), but clicking an entry in the menu executes the action without dismissing the menu. The menu stays visible after the action fires.

This is a regression on latest develop — the dismiss path was working after #451 landed but broke in a subsequent merge (likely #452 group divider drag changes to src/tui_main/mouse.rs).

Reproduction

  1. Open TUI vimcode
  2. Right-click a file in the explorer sidebar
  3. Context menu appears (correct)
  4. Click an entry (e.g., "Open to the Side")
  5. Expected: action fires AND menu dismisses
  6. Actual: action fires but menu stays visible

Likely cause

#452 (group divider drag) modified click dispatch in src/tui_main/mouse.rs. The context menu click handler may no longer call engine.close_context_menu() after executing the action, or the hit-test path changed so the dismiss branch is skipped.

Files

  • src/tui_main/mouse.rs — context menu click dispatch
  • Possibly src/core/engine/close_context_menu() or handle_context_menu_click()

Activity

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 isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions