Input line disappears when accidentally hitting unknown key combo

Resolved 💬 2 comments Opened Mar 19, 2026 by jwilleke Closed Apr 17, 2026

Problem

While typing in the CLI input, it's easy to accidentally hit a key combination that causes the entire input line to disappear. This is especially frustrating for users who are not fast/precise typists.

There's no indication of what key was pressed, no undo, and no way to recover the text. The input is just gone.

As a workaround, I've resorted to typing my prompts in a separate text editor and pasting them into the CLI, which defeats the purpose of an interactive tool.

Expected behavior

  • Common accidental key combos should not clear the input without confirmation
  • Or at minimum, provide an undo (Ctrl+Z) to recover cleared input

Impact

This is a significant usability issue that disrupts workflow and causes frustration, especially for users who may take longer to type out their prompts.

Environment

  • Platform: macOS (Darwin)
  • Shell: zsh

View original on GitHub ↗

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