anomalyco / anomalyco/opencode

[FEATURE] Desktop app: support custom keybinds for input newline (Ctrl+Enter)

Open
#43,897 1 comment 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 21, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Is your feature request related to a problem? Please describe.

In the desktop app, pressing Enter immediately sends the message. There is no way to type multi-line input before sending. The terminal TUI supports this via tui.json keybind configuration (input_newline, input_submit), but the desktop app does not read tui.json.

Describe the solution you'd like

Add keybind configuration support to the desktop app, specifically:

  • Enter — send message
  • Ctrl+Enter / Shift+Enter — newline (queue text without sending)

This should be configurable through the same tui.json or opencode.json config that the terminal TUI uses.

Describe alternatives you've considered

  • Using the terminal TUI instead (works, but less convenient)
  • Modifying app.asar (breaks on updates)

Additional context

The desktop app is an Electron app that appears to use a separate configuration system from the terminal TUI. The tui.json keybinds (input_submit, input_newline) should be shared across both interfaces.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.