claude-code - 💡(How to fix) Fix Vim NORMAL-mode motion (h / ←) should return from an agent to the agent list in agent view

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

What

In agent view (claude agents), with vim editor mode enabled, NORMAL-mode motions should drive list navigation, not just the prompt text buffer. Specifically: pressing h (or ) in NORMAL mode while attached to a specific agent should detach back to the agent list.

Current behavior

  • Agent view uses arrow keys: ↑/↓ move rows, attaches to a session, detaches back to the list, Esc exits.
  • Vim mode is scoped to the prompt text buffer. NORMAL-mode h/j/k/l only move the text cursor; they don't navigate agent view.
  • So a vim user attached to one agent can't use h to pop back to the list, even though it's the natural motion. They have to reach for .

Desired behavior

When vim mode is on and the prompt is empty (or in NORMAL mode), h and should both move focus from the current agent back to the agent list, i.e. behave like the existing detach action. Ideally j/k mirror ↓/↑ for row movement and l mirrors for attach, so the whole agent view is vim-navigable.

Nice to have

Expose the agent-view keybinding actions (e.g. detach/attach/next/prev) in ~/.claude/keybindings.json so this is user-configurable even if it isn't the default.

Environment

  • Claude Code 2.1.150
  • macOS 26.5

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING