Selected text in input is not deleted — selection disappears on any delete action

Open 💬 0 comments Opened Jul 29, 2026 by beauling520

Description

In the chat input box, selecting text and then pressing any key or clicking any button that triggers deletion causes the text selection to disappear immediately. The selected text remains in the input — it is not deleted — and the user is forced to delete character by character instead.

Steps to reproduce

  1. Type some text in the chat input box
  2. Select a portion of the text with the mouse (drag to highlight)
  3. Press the delete (Backspace) key, or click the on-screen delete button

Expected behavior

The selected text should be deleted in a single action, consistent with standard text input behavior across all platforms.

Actual behavior

The text selection highlight disappears instantly when the delete action triggers. No text is removed. The user must delete one character at a time.

Environment

  • Version: codex-cli 0.145.0
  • OS: macOS (Apple Silicon)
  • Terminal: [your terminal, e.g. iTerm2 / Terminal.app / Warp]

View original on GitHub ↗