[BUG] macOS Text Replacements Do Not Work in Claude Code Input Fields

Resolved 💬 2 comments Opened Jun 17, 2025 by danielraffel Closed Jun 18, 2025

Environment

  • Platform (select one):
  • [x] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.25 (Claude Code)
  • Operating System: macOS 15.5
  • Terminal: terminal in Cursor

Bug Description

macOS text replacements (System Settings → Keyboard → Text Replacements) do not work inside Claude’s code input fields. For example, typing a shortcut like cck — which is normally expanded to create checkpoint — has no effect. The text remains unchanged. This behavior differs from most other input fields across macOS, where text replacements are applied consistently.

Steps to Reproduce

  1. On macOS, open System Settings → Keyboard → Text Replacements.
  2. Add a replacement, such as cck → create checkpoint.
  3. Open Claude and click into a code input field.
  4. Type cck and observe that it does not expand.

Expected Behavior

Typing a configured text replacement like cck should automatically expand to create checkpoint, as it does in standard macOS input fields.

Actual Behavior

Typing the text replacement shortcut results in no expansion — the string remains as typed (e.g., cck stays cck).

Additional Context

This issue only appears in Claude’s code input area. Text replacement works as expected in other macOS fields like Notes, Safari, Terminal, and even some web forms. This may be due to how the Claude code editor handles input events, possibly bypassing the native macOS input system.

View original on GitHub ↗

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