Skip to content

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

@danielraffel

Description

@danielraffel

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workingplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions