Skip to content

input_clear has no effect #7079

Closed
Closed

Description

@FurryWolfX

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 6, 2026
  2. github-actions commented on Jan 6, 2026

    @github-actions
    Contributor

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

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

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

  3. glebtv commented on Mar 8, 2026

    @glebtv

    I'm having troubles with accidentally hitting ctrl+c sometimes which clears my prompt input - and the 'undo' does not work for me after clear happens. Is it supposed to work like this?

  4. removed
    bugSomething isn't working
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on May 3, 2026
  5. yurenchen000 commented on May 11, 2026

    @yurenchen000

    Ctrl+C to clear input.

    i known this keyboard shortcut today,
    i didn't see it in any docs.

    ctrl+p /help nothing about it


    maybe a support of Ctrl+A + backspace is More Conventional.
    Ctrl+C with empty input area, will exit opencode


    IMO, A shortcut key with multiple functions is not ideal,
    especially when the remote terminal is slow to respond.

  6. FurryWolfX commented on May 22, 2026

    @FurryWolfX
    Author

    "input_clear": "<leader>c" works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions