option+delete (delete word backward) broken on Ghostty since v2.1.91

Resolved 💬 4 comments Opened Apr 3, 2026 by sliamh11 Closed May 12, 2026

Description

option+delete no longer deletes the previous word in the chat input — it deletes a single character instead. This is a regression in v2.1.91, likely introduced by the cmd+delete fix listed in the changelog:

Fixed cmd+delete not deleting to start of line on iTerm2, kitty, WezTerm, Ghostty, and Windows Terminal

Steps to reproduce

  1. Open Claude Code v2.1.91 in Ghostty
  2. Type a multi-word prompt (e.g. "hello world foo bar")
  3. Press option+delete
  4. Expected: deletes "bar" (last word)
  5. Actual: deletes a single character ("r")

Environment

  • Claude Code: 2.1.91
  • Terminal: Ghostty
  • OS: macOS (Apple Silicon)

Verification

  • Tested on v2.1.90: option+delete correctly deletes the last word
  • Tested on v2.1.91: option+delete only deletes a single character
  • cmd+delete (delete to start of line) works correctly on both versions — only option+delete is affected
  • Works fine in the regular terminal shell outside of Claude Code

The v2.1.91 changelog's cmd+delete fix touched delete key handling for Ghostty, which likely regressed option+delete.

View original on GitHub ↗

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