Skip to content

opentui: input_submit not reading <leader> keybind properly #3557

Closed

Description

@jeeeem

Description

I have this input_submit keybind

"input_submit": "<leader>enter,<leader>s"

Other keybind with is working properly, but this specific keybind doesnt. I did a workaround so I can use the opentui version, but I would like to use this specic keybind of mine if that is possible.

OpenCode version

0.0.0-opentui-202510292344

Steps to reproduce

Use latest opentui

Screenshot and/or share link

No response

Operating System

macOS 26.0.1

Terminal

Ghostty

Activity

  1. github-actions commented on Oct 30, 2025

    @github-actions
    Contributor

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

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

  2. jeeeem commented on Oct 30, 2025

    @jeeeem
    Author

    This also shows up when I hit <ctrl+alt+d>

    Image
  3. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Oct 30, 2025
  4. rekram1-node commented on Oct 30, 2025

    @rekram1-node
    Collaborator

    thanks!

  5. jeeeem commented on Nov 9, 2025

    @jeeeem
    Author

    thanks!

    Just to update, still having this issue on 1.0.49, this works before so Im hoping this can be fix.

    Im usingalt+c as my leader key, all other keybinds is working aside from input_submit.

    The reason why I did because of this issue with zellij
    zellij-org/zellij#4159

    I can’t enter a new line with shift+enter, though it works outside Zellij with using shift+return in Ghostty
    #1505 (comment)

    It’s not a blocker since I can still use Opencode normally, but it’d be great if this could be fixed for consistency.

  6. taqtiqa-mark commented on Nov 25, 2025

    @taqtiqa-mark

    I'm experiencing this issue on v1.0.109.
    Frustratingly plain-old-key return/enter submits the text... this is really what I am trying to prevent.

        "leader": "ctrl-x"
        # ...
        # borked: return, enter, linefeed
        "input_submit": "<leader>enter",
        # ...

    Workaround: Kinda pointless, since enter always submits, but anyway ctrl-enter or ctrl-return does submit the text.

    The Alacritty workaround for input_newline reported here (#4046 (comment)), but has no effect, and appears to be a distinct issue with <leader> key.

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions