input_clear has no effect #4301

Open
opened 2026-02-16 17:43:20 -05:00 by yindo · 1 comment
Owner

Originally created by @FurryWolfX on GitHub (Jan 6, 2026).

Originally assigned to: @kommander on GitHub.

Description

Image

Why is the default shortcut for input_clear Ctrl+C? It will terminate OpenCode.
I changed it to <leader>c, but pressing Ctrl+X C has no effect.

  "keybinds": {
    "session_compact": "none",
    "input_clear": "<leader>c"
  },

I don't know where the problem is.

Plugins

no

OpenCode version

1.1.3

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Originally created by @FurryWolfX on GitHub (Jan 6, 2026). Originally assigned to: @kommander on GitHub. ### Description <img width="409" height="230" alt="Image" src="https://github.com/user-attachments/assets/f2795d15-4792-42e3-8d9f-e587dfc92cbd" /> Why is the default shortcut for input_clear Ctrl+C? It will terminate OpenCode. I changed it to `<leader>c`, but pressing Ctrl+X C has no effect. ```json "keybinds": { "session_compact": "none", "input_clear": "<leader>c" }, ``` I don't know where the problem is. ### Plugins no ### OpenCode version 1.1.3 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Windows 11 ### Terminal Windows Terminal
yindo added the windowsopentuibug labels 2026-02-16 17:43:20 -05:00
Author
Owner

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

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

  • #6650: Clearing input with cmd+backspace breaks w/ custom keybinds configured (similar keybind configuration issue)
  • #7062: Pressing Ctrl+C in input field outputs ANSI escape sequences on Windows (related Ctrl+C behavior in input field)
  • #2232: Preserve Prompt on Ctrl+C (related to Ctrl+C handling in input field)

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

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 6, 2026): This issue might be a duplicate or related to existing issues. Please check: - #6650: Clearing input with cmd+backspace breaks w/ custom keybinds configured (similar keybind configuration issue) - #7062: Pressing Ctrl+C in input field outputs ANSI escape sequences on Windows (related Ctrl+C behavior in input field) - #2232: Preserve Prompt on Ctrl+C (related to Ctrl+C handling in input field) For keybind-related issues, please also check our pinned keybinds documentation: #4997 Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4301