claude-code - 💡(How to fix) Fix /keybindings template includes cmd+c binding that /doctor immediately flags as invalid on macOS

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The /keybindings slash command generates a fresh ~/.claude/keybindings.json from a built-in template. That template includes "cmd+c": "selection:copy" in the Scroll context. On macOS, cmd+c is a reserved system shortcut, so /doctor immediately flags it as a warning on a file the user never manually edited.

Root Cause

The /keybindings slash command generates a fresh ~/.claude/keybindings.json from a built-in template. That template includes "cmd+c": "selection:copy" in the Scroll context. On macOS, cmd+c is a reserved system shortcut, so /doctor immediately flags it as a warning on a file the user never manually edited.

RAW_BUFFERClick to expand / collapse

Summary

The /keybindings slash command generates a fresh ~/.claude/keybindings.json from a built-in template. That template includes "cmd+c": "selection:copy" in the Scroll context. On macOS, cmd+c is a reserved system shortcut, so /doctor immediately flags it as a warning on a file the user never manually edited.

Steps to Reproduce

  1. Ensure ~/.claude/keybindings.json does not exist
  2. Run /keybindings in Claude Code — it creates the file from a template
  3. Run /doctor — it reports: "cmd+c" may not work: macOS system copy

Expected Behavior

The generated template should not include keybindings that are immediately flagged as invalid. Either omit cmd+c from the template or replace it with ctrl+shift+c (which is already present in the same template and works correctly).

Actual Behavior

A freshly generated keybindings file contains a binding (cmd+c) that /doctor flags as broken on macOS, requiring the user to manually fix a file they never intentionally configured.

Environment

  • Platform: macOS

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix /keybindings template includes cmd+c binding that /doctor immediately flags as invalid on macOS