claude-code - 💡(How to fix) Fix /doctor flags context-scoped cmd+c binding as macOS conflict (false positive)

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…

/doctor reports cmd+c in ~/.claude/keybindings.json as a potential conflict with macOS system copy, but the binding is scoped to the Scroll context only — it doesn't shadow the system shortcut at the chat prompt, and copy works correctly in practice.

Root Cause

/doctor reports cmd+c in ~/.claude/keybindings.json as a potential conflict with macOS system copy, but the binding is scoped to the Scroll context only — it doesn't shadow the system shortcut at the chat prompt, and copy works correctly in practice.

Code Example

{
  "context": "Scroll",
  "bindings": {
    "ctrl+shift+c": "selection:copy",
    "cmd+c": "selection:copy",
    ...
  }
}

---

Keybinding configuration issues · /Users/<me>/.claude/keybindings.json
"cmd+c" may not work: macOS system copy
RAW_BUFFERClick to expand / collapse

Summary

/doctor reports cmd+c in ~/.claude/keybindings.json as a potential conflict with macOS system copy, but the binding is scoped to the Scroll context only — it doesn't shadow the system shortcut at the chat prompt, and copy works correctly in practice.

Repro

~/.claude/keybindings.json contains:

{
  "context": "Scroll",
  "bindings": {
    "ctrl+shift+c": "selection:copy",
    "cmd+c": "selection:copy",
    ...
  }
}

Run /doctor. Output includes:

✘ Keybinding configuration issues · /Users/<me>/.claude/keybindings.json
  └ "cmd+c" may not work: macOS system copy

In practice, cmd+c works fine — both as the macOS system copy outside scroll/selection mode and as selection:copy inside the Scroll context after entering selection mode (shift+arrow, wheelup, etc.).

Expected

/doctor's keybinding validator should consider the binding's context before flagging a conflict. A cmd+c binding scoped to Scroll (or any non-Global/non-Chat context that requires explicit entry) is not a conflict with the system shortcut. Only flag cmd+c when it appears in Global or in always-active input contexts.

Environment

  • Claude Code 2.1.153
  • macOS 26.4.1 (build 25E253)

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