Left arrow accidentally navigates to agents screen (not rebindable) and breaks main session view on return

Open 💬 6 comments Opened Jul 8, 2026 by u-a-13

Summary

Two related issues with the footer's left-arrow "agents" navigation:

1. Left arrow in chat unexpectedly navigates to the agents/background-tasks screen, and isn't rebindable

While focused in the chat input (with an empty input box, manual mode on), pressing left navigates away to the agents screen — the footer displays manual mode on · ← for agents as a hint. This is easy to trigger by accident (e.g. reaching for history navigation or just missing the intended key).

I attempted to work around this via ~/.claude/keybindings.json, trying:

  • Unbinding left in the Footer context
  • Rebinding Footer left/right navigation to alt+left/alt+right

Neither had any effect — pressing plain left while in the chat input still triggered navigation to the agents screen. This suggests the behavior isn't routed through the documented keybindings context system (or Chat context takes priority / falls through to a hardcoded handler not covered by Footer overrides).

Request: Either make this binding configurable via keybindings.json (ideally scoped narrowly — e.g. a dedicated action like chat:openAgents bound to left by default, that can be unbound/rebound independently of other footer/chat navigation), or otherwise give users a way to disable just this specific shortcut without affecting other left-arrow behavior.

2. Returning from the agents screen leaves the main session in a degraded state

After accidentally entering the agents screen and then navigating back (left again) into the same main session, the session's UI doesn't restore properly — the task tracker is dropped, and the main session ends up rendering as if it were just another spawned subagent rather than the primary session. This makes the accidental navigation costly beyond just the interruption: the working view has to be reconstructed or the state looks visually broken/inconsistent afterward.

Request: Returning to the main session from the agents screen should restore the exact prior view/state (task tracker included), with no visual difference from having never navigated away.

Environment

  • Claude Code CLI, terminal UI
  • macOS (Darwin), zsh

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗