Issue with m key on macOS #3044

Open
opened 2026-02-16 17:38:21 -05:00 by yindo · 4 comments
Owner

Originally created by @0x524c on GitHub (Nov 21, 2025).

Originally assigned to: @thdxr on GitHub.

Description

Pressing the m key (without any modification key) in OpenCode on macOS displays the model selection window.

Image

OpenCode version

v1.0.87

macOS version: 26.1

The bug currently makes the use of OpenCode unfeasible.

Originally created by @0x524c on GitHub (Nov 21, 2025). Originally assigned to: @thdxr on GitHub. ### Description Pressing the `m` key (without any modification key) in OpenCode on macOS displays the model selection window. <img width="537" height="519" alt="Image" src="https://github.com/user-attachments/assets/93713b5f-876a-48b0-9d67-cc47fca7b74b" /> ### OpenCode version v1.0.87 macOS version: 26.1 The bug currently makes the use of OpenCode unfeasible.
yindo added the opentuibug labels 2026-02-16 17:38:21 -05:00
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

@524c can you show me opencode debug config

I can't replicate this I think you have a keybind doing this?

@rekram1-node commented on GitHub (Nov 21, 2025): @524c can you show me `opencode debug config` I can't replicate this I think you have a keybind doing this?
Author
Owner

@0x524c commented on GitHub (Nov 21, 2025):

I don't think so because I haven't changed anything in my zsh profile.
I'll install older versions to see if it still happens.

@0x524c commented on GitHub (Nov 21, 2025): I don't think so because I haven't changed anything in my zsh profile. I'll install older versions to see if it still happens.
Author
Owner

@rekram1-node commented on GitHub (Nov 21, 2025):

wouldn't really have anything to do with a zsh profile, it would be your opencode config.

If you dump your config I can show you what's happening and help

@rekram1-node commented on GitHub (Nov 21, 2025): wouldn't really have anything to do with a zsh profile, it would be your opencode config. If you dump your config I can show you what's happening and help
Author
Owner

@0x524c commented on GitHub (Nov 21, 2025):

It's nothing to do with recent versions. I installed a very old one, v1.0.49, and the problem persisted.

The problem somehow resides in ~/.config/opencode.

My last attempt to update the version via opencode upgrade failed, so I ran curl -fsSL https://opencode.ai/install | bash. Even using the installation script, it still showed errors, but it opened Opencode, and that's when the problem with the m key started.

https://github.com/user-attachments/assets/d10d438e-34fc-4ca0-9999-81efed5a1c11

opencode.json

Removing this from the configuration solves the problem:

  "keybinds": {
    "model_cycle_recent": "cmd+shift+m",
    "model_cycle_recent_reverse": "cmd+shift+alt+m",
    "model_list": "cmd+m"
  }

And it's specifically with this "model_list": "cmd+m". It's as if it always reads cmd as pressed (and it isn't).

@0x524c commented on GitHub (Nov 21, 2025): It's nothing to do with recent versions. I installed a very old one, v1.0.49, and the problem persisted. The problem somehow resides in `~/.config/opencode`. My last attempt to update the version via `opencode upgrade` failed, so I ran `curl -fsSL https://opencode.ai/install | bash`. Even using the installation script, it still showed errors, but it opened Opencode, and that's when the problem with the `m` key started. https://github.com/user-attachments/assets/d10d438e-34fc-4ca0-9999-81efed5a1c11 [opencode.json](https://github.com/user-attachments/files/23685578/opencode.json) Removing this from the configuration solves the problem: ```json "keybinds": { "model_cycle_recent": "cmd+shift+m", "model_cycle_recent_reverse": "cmd+shift+alt+m", "model_list": "cmd+m" } ``` And it's specifically with this `"model_list": "cmd+m"`. It's as if it always reads `cmd` as pressed (and it isn't).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3044