Shortcut for Bash/Memorize mode broken when preceded by the shortcut char "?"

Resolved 💬 3 comments Opened Jul 16, 2025 by VivKatara Closed Nov 30, 2025

Bug Description
Getting to bash mode for the first time, using the shortcuts ("?") char, is broken. If I press "?" + "!" in a sequence (as I'm discovering bash mode), it does not work. Only if I erase the keystrokes and then press "!" without any preceding keystrokes does bash mode work. The same is true for memorize mode. However, using the shortcut char "?" followed by "/" for commands or "@" for mentions does enter into the special mode.

I stumbled on this while trying to enter bash mode for the first time, and discovering shortcuts in order to do so. Inevitably, I pressed the shortcut char followed by the bash mode char, only to realize that bash mode only works when the shortcut char does not precede it. Fixing this would definitely help in discovery of bash mode and memorize mode for first time users.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.52
  • Feedback ID: ab8b63c0-0a15-4c5c-910c-75e599f6ecb9

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at eD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:706:6320)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:618:14473\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:520:14406)\n    at AF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:618:13613)\n    at gC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:618:12479)\n    at $B (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:618:17093)","timestamp":"2025-07-16T16:56:27.486Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at TF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1483:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1483:912\n    at Array.map (<anonymous>)\n    at PF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1483:903)\n    at aS2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1970:9859)\n    at Ew (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19804)\n    at _P (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n    at PP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n    at IL (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n    at xw (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)","timestamp":"2025-07-16T17:11:00.669Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at TF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1483:1184)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1483:912\n    at Array.map (<anonymous>)\n    at PF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1483:903)\n    at aS2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1970:9859)\n    at Ew (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19804)\n    at _P (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n    at PP (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n    at IL (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n    at xw (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)","timestamp":"2025-07-16T17:11:31.490Z"},{"error":"SyntaxError: Unexpected non-whitespace character after JSON at position 62 (line 6 column 1)\n    at JSON.parse (<anonymous>)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:613:9923\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:520:14406)\n    at kw2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1342:10535)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-16T17:30:34.688Z"},{"error":"Error: spawn /opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/arm64-darwin/rg ENOENT\n    at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n    at onErrorNT (node:internal/child_process:484:16)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-07-16T17:40:41.663Z"}]

View original on GitHub ↗

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