anomalyco / anomalyco/opencode

Bug: IME composition breaks on the first keystroke in the v2 prompt input

Open
#39,632 3 comments 3 reactions 1 assignee View on GitHub

@kommander is already working on this.

Since Jul 30, 2026.

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

Description

Description

When using the new prompt input, typing with an IME breaks on the first keystroke. The first character is committed as literal text into the input box instead of staying in the composition, so it can't join the rest.

The old layout handles this correctly, so it only affects the v2 editor.

Plugins

No response

OpenCode version

v1.18.6

Steps to reproduce

For example with double pinyin, typing ceuu leaves c in the box while euu stays in the IME candidate window.

Screenshot and/or share link

https://github.com/user-attachments/assets/408af654-87f5-4323-95c2-01436cb987ed

Operating System

macOS 27.0 Beta

Terminal

No response

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.