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
- Open TUI vimcode
- Right-click a file in the explorer sidebar
- Context menu appears (correct)
- Click an entry (e.g., "Open to the Side")
- Expected: action fires AND menu dismisses
- 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()
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
Likely cause
#452 (group divider drag) modified click dispatch in
src/tui_main/mouse.rs. The context menu click handler may no longer callengine.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 dispatchsrc/core/engine/—close_context_menu()orhandle_context_menu_click()