move-panel-shortcut

Fix TUI Help focus, scrolling, dismissal, and task-bar clutter

Metadata

Statusdone
Assignedagent-901
Agent identity8b579312a7ee512b4a8484518eff16ecdb36de1c9cf52fdb5e7f566586fa5d18
Created2026-07-26T10:30:44.128123095+00:00
Started2026-07-26T21:02:02.340805592+00:00
Completed2026-07-26T21:34:34.884284267+00:00
Tokens10776653 in / 30124 out

Description

User-visible bugs

The existing Help content is good and should be preserved, but its interaction model is broken:

  1. The task bar persistently advertises Ctrl+O→p Panel, which is visually garish. Remove that hint from the task bar and keep the shortcut in Help.
  2. When Help opens, it does not acquire modal input/focus correctly. Mouse wheel/trackpad scrolling, touch-derived scroll events, PageUp/PageDown, Up/Down arrows, Home/End, and pointer interaction do not scroll its content.
  3. Clicking outside the Help surface does not dismiss it. Escape is effectively the only exit.

Required behavior

  • Clicking the visible question-mark control or using the keyboard Help shortcut opens the same scrollable Help overlay/view. Preserve the existing high-quality shortcut content; reorganize only as needed for interaction and first-viewport essentials.
  • Help acquires modal focus/input ownership while open. Supported keyboard navigation and terminal mouse/trackpad wheel events scroll Help—not the underlying task list/panel.
  • PageUp/PageDown and Up/Down work; Home/End jump predictably; scrolling clamps at boundaries and exposes a visible position/scroll affordance where consistent with the TUI.
  • A click inside Help interacts only with Help. A click outside its bounds dismisses Help and must not leak through to activate/change the underlying target. Escape also dismisses it.
  • On dismissal, restore focus, task selection, panel state, and prior scroll position exactly. Resizing while open remains legible and clamps scroll safely.
  • The first viewport immediately shows essential navigation, including Panel access (Ctrl+O, then p), move/activate/close, and Help scrolling controls; advanced combinations remain below the fold.
  • Task bar remains clean at wide and narrow widths with no replacement clutter.
  • Shortcut labels and behavior match authoritative key bindings where feasible.

Validation

  • Live main-branch tmux/PTY reproducer demonstrates: persistent Panel hint; Help wheel/PageUp/arrows do not scroll; outside click does not close.
  • Real TUI flow clicks the actual question-mark hit target and proves Help receives modal focus.
  • Driven Up/Down, PageUp/PageDown, Home/End, mouse wheel, and trackpad-equivalent terminal events visibly move through below-fold content and clamp correctly.
  • Real outside click dismisses Help without changing the underlying task selection/view; inside clicks do not leak through; Escape remains supported.
  • Close restores prior focus/selection/panel/scroll state, including after a resize.
  • Representative narrow/wide snapshots prove the task-bar hint is absent and first-viewport Help remains legible.
  • Add a permanent real human-flow scenario under tests/smoke/scenarios/ and grow-only owner entry in tests/smoke/manifest.toml; use tmux/PTY mouse sequences and wg tui-dump/screenshots as evidence.
  • Focused tests, cargo fmt --check, cargo clippy, and build pass.

Depends on

Required by

Messages 2 messages (2 unread)

  1. #1user2026-07-26T10:31:45.758957988+00:00delivered
    User clarified that Help content itself is already good. Preserve it; the primary bugs are modal focus/input ownership, wheel/trackpad/touch + keyboard scrolling, outside-click dismissal without click-through, Escape fallback, and exact focus/selection restoration.
  2. #2move-panel-shortcut2026-07-26T21:02:09.654960637+00:00read
    Acknowledged — I will preserve the existing Help content and focus on modal ownership, complete keyboard/wheel scrolling, outside-click dismissal without click-through, Escape, and exact state restoration.

Log