`!` bash-command input can hang on submit due to filename-completion dropdown stealing keystrokes

Status Open
Maintainer reply None cached
Activity 0 comments · opened Jul 29, 2026

When typing a shell command via the ! prefix that includes a path-like token (e.g. ls -a /root, ls \root), the input box's filename-completion/autocomplete dropdown sometimes activates and captures subsequent keystrokes (including Enter), so the command never submits to the shell — it just sits at the prompt with no output, no error, indefinitely. Pressing Escape before Enter dismisses the dropdown and lets the command run normally, confirming the underlying shell/command execution isn't at fault.

Repro steps:

  1. Type ! to enter bash-command mode.
  2. Type a command referencing an absolute or backslash-prefixed path, e.g. ls -a /root.
  3. Press Enter without first pressing Escape.
  4. Observe: no output, command does not appear to execute.
  5. Press Escape, retype/submit — command runs normally.

Expected: Enter should submit the command to the shell regardless of any open autocomplete suggestion, or the dropdown shouldn't intercept Enter unless an item is actively highlighted for selection.

View original on GitHub ↗