Vim NORMAL-mode motion (h / ←) should return from an agent to the agent list in agent view
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,Escexits. - Vim mode is scoped to the prompt text buffer. NORMAL-mode
h/j/k/lonly move the text cursor; they don't navigate agent view. - So a vim user attached to one agent can't use
hto 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
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗