Enter key during paste operation sends incomplete input

Resolved 💬 3 comments Opened Jan 24, 2026 by chall37 Closed Jan 27, 2026

Bug Description

If the user presses Enter while text is still being pasted into the CLI, the Enter keypress is processed before the paste operation completes, causing the message to be sent prematurely with truncated input.

Steps to Reproduce

  1. Start typing or have the cursor in the input area
  2. Paste a large block of text (e.g., a long error log)
  3. Press Enter while the paste is still in progress
  4. The message is sent with only partial content

Expected Behavior

The Enter key should either:

  • Be buffered until the paste operation completes, or
  • Be ignored during an active paste operation

Environment

  • macOS
  • Terminal paste operation

View original on GitHub ↗

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