Skip to content

Bug: Up/Down arrows navigate suggestions instead of shell history #418

Description

@yslpn

Describe the bug

When the inshellisense suggestion menu is visible, the Up and Down arrow keys are captured by the suggestion list instead of navigating shell command history.

The menu can also appear while browsing previous commands, which makes history navigation unreliable.

To Reproduce

Steps to reproduce the behavior:

  1. Start a shell session with inshellisense enabled.
  2. Run a few commands so the shell history contains multiple entries.
  3. Type a command or partial command that opens the inshellisense suggestion menu.
  4. Press Up or Down.
  5. Notice that the selected suggestion changes instead of the shell history entry.

Expected behavior

Up and Down should continue to navigate the shell command history.

The suggestion menu should not appear while navigating through history just because a previous command is displayed. It should appear only after the user resumes typing or editing the input.

Environment

  • OS: macOS 26.5.1
  • Output of is --version: 0.0.1
  • Nodejs Version: v24.16.0
  • Shell: zsh
  • Shell Version: 5.9 (arm64-apple-darwin25.0)

Additional context

There were older issues around command history and arrow-key behavior:

Those issues appear to be closed, but this report is specifically about the visible suggestion menu capturing Up / Down and appearing during history navigation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions