[BUG] Unable to select model using option+p in Mac
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When trying to switch model while typing a prompt using option+p, this is the output:
π
What Should Happen?
change model
Error Messages/Logs
Steps to Reproduce
Open claude code using mac termina and type option+p.
Same issue in iTerm2 and vs code term.
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
No response
Claude Code Version
2.0.68
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
No response
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/11522
- https://github.com/anthropics/claude-code/issues/2751
- https://github.com/anthropics/claude-code/issues/8259
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
Ok figured it out. You have to use none default terminal settings for this to work:
- Terminal, "Use Option as Meta Key"
- iTerm2, "Send option as Esc+"
- VS Code, "macOptionalsMeta" need to be toggled on
Suggest to either add to help doc or support default mac option key since it requires none default settings.
Same issue. I get the pi symbol. Tried on Warp, default Mac terminal, and Ghostty
UPDATE: Indeed it is fixed in Warp by switching on the flag Option key is Meta
I had the same issue using the Ghostty terminal app. Thanks for all the hints in this thread. So I could figure out how I have to configure Ghostty:
macos-option-as-alt = true
See https://ghostty.org/docs/config/reference#macos-option-as-alt