Clearing input with cmd+backspace breaks w/ messages_half_page_up configured #4091

Open
opened 2026-02-16 17:42:34 -05:00 by yindo · 3 comments
Owner

Originally created by @jesseleite on GitHub (Jan 2, 2026).

Originally assigned to: @kommander on GitHub.

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

Originally created by @jesseleite on GitHub (Jan 2, 2026). Originally assigned to: @kommander on GitHub. ### 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](https://github.com/user-attachments/assets/5168a9fa-c6b6-4aef-a7f1-eeeb99448296) 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: ```json "keybinds": { "messages_half_page_up": "ctrl+u", "messages_half_page_down": "ctrl+d" } ``` 2. 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
yindo added the opentuibug labels 2026-02-16 17:42:34 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 2, 2026):

This issue might be a duplicate of or related to existing issues. Please check:

  • #1471: cmd + backspace doesn't work (similar MacOS issue with cmd+backspace)
  • #3783: Command backspace not working from 1.0 (another MacOS cmd+backspace issue)
  • #5457: When input is nonempty, ctrl+d does app_exit instead of input_delete (keybind conflict issue)
  • #3647: Ctrl-u not clearing input field (keybind conflict with input clearing)

The root cause appears to be related to keybind configuration conflicts. All of these involve input clearing/deletion keybinds not working as expected.

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Jan 2, 2026): This issue might be a duplicate of or related to existing issues. Please check: - #1471: cmd + backspace doesn't work (similar MacOS issue with cmd+backspace) - #3783: Command backspace not working from 1.0 (another MacOS cmd+backspace issue) - #5457: When input is nonempty, ctrl+d does app_exit instead of input_delete (keybind conflict issue) - #3647: Ctrl-u not clearing input field (keybind conflict with input clearing) The root cause appears to be related to keybind configuration conflicts. All of these involve input clearing/deletion keybinds not working as expected. For keybind-related issues, please also check our pinned keybinds documentation: #4997
Author
Owner

@rekram1-node commented on GitHub (Jan 2, 2026):

/oc fix it

@rekram1-node commented on GitHub (Jan 2, 2026): /oc fix it
Author
Owner

@opencode-agent[bot] commented on GitHub (Jan 2, 2026):

Created PR #6664

New%20session%20-%202026-01-02T17%3A57%3A48.718Z
opencode session  |  github run

@opencode-agent[bot] commented on GitHub (Jan 2, 2026): Created PR #6664 <a href="https://opencode.ai/s/r3uS6Ny3"><img width="200" alt="New%20session%20-%202026-01-02T17%3A57%3A48.718Z" src="https://social-cards.sst.dev/opencode-share/TmV3IHNlc3Npb24gLSAyMDI2LTAxLTAyVDE3OjU3OjQ4LjcxOFo=.png?model=opencode/claude-opus-4-5&version=1.0.223&id=r3uS6Ny3" /></a> [opencode session](https://opencode.ai/s/r3uS6Ny3)&nbsp;&nbsp;|&nbsp;&nbsp;[github run](/sst/opencode/actions/runs/20663555496)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4091