macOS: Cmd+R exits Code mode, switches to Chat, and starts a new session

Open 💬 1 comment Opened Jun 11, 2026 by blwfish

Steps to reproduce

  1. Open Claude Code Desktop on macOS.
  2. Start a session in Code mode with some context in it.
  3. Press Cmd+R.

Expected behavior

Cmd+R is the standard macOS/Electron/browser reload shortcut. It should reload the window or be a no-op. If it triggers a destructive action, it should require confirmation first.

Actual behavior

Cmd+R exits Code mode entirely, switches to Chat mode, and starts a new session. The Code session context is abandoned with no confirmation dialog and no undo path. The mode switch is immediate and visually dramatic — this is not a subtle side effect.

Why this matters

Cmd+R is one of the strongest muscle-memory shortcuts on macOS — it fires reflexively in browsers, terminals, and Electron apps. Binding it to a compound destructive action (mode switch + context loss) creates a high-probability accident with no recovery path.

Note on #60291

#60291 mentions Cmd+R in a Claude Desktop context, but the relationship is inverted: there, Cmd+R was a workaround the user intentionally pressed to fix a blank render bug. Here, Cmd+R is the trigger for an unintended destructive action — the opposite direction.

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗