opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Clearing input with cmd+backspace breaks w/ `messages_half_page_up` configured

Open jesseleite opened this issue 2 weeks ago • 3 comments

Description

This is a weird one!

It seems clearing the input with cmd+backspace (a common MacOS-ism) breaks when this messages_half_page_up keybind is configured:

Image

But if I delete that one line and relaunch opencode, cmd+backspace works just fine 🤔

OpenCode version

1.0.223

Steps to reproduce

  1. Configure the following keybinds in opencode:
"keybinds": {
  "messages_half_page_up": "ctrl+u",
  "messages_half_page_down": "ctrl+d"
}
  1. Try to cmd+backspace to clear the prompt input in opencode on MacOS.

Screenshot and/or share link

No response

Operating System

MacOS Sequoia 15.5

Terminal

Ghostty

jesseleite avatar Jan 02 '26 15:01 jesseleite