Wayland: can't type Unicode emojis into prompt #9101

Open
opened 2026-02-16 18:11:39 -05:00 by yindo · 1 comment
Owner

Originally created by @michalrus on GitHub (Feb 11, 2026).

Originally assigned to: @kommander on GitHub.

Description

On Wayland (Hyprland), Linux, I can't use sleep 1 && wtype 🍄 from another terminal to type into opencode CLI. It works with any other terminal or graphical app.

wtype <unicode-emoji> is often used by emoji pickers on Wayland.

Pasting the emoji works, only typing it in with wtype is broken.

wtype é works – this highlights “non‑BMP only” rather than general Unicode.

LANG/LC_CTYPE are all en_US.UTF-8.

Plugins

none

OpenCode version

1.1.47

Steps to reproduce

  1. Run opencode on Wayland, Linux.
  2. In a separate terminal run sleep 1 ; wtype 🍄, and immediately switch focus to the terminal running opencode.
  3. Instead of a mushroom, you see ��.
  4. Optionally verify the byte codes of �� vs the 🍄:
❯ printf '��' | xxd
00000000: efbf bdef bfbd

❯ printf '🍄' | xxd
00000000: f09f 8d84

Screenshot and/or share link

Image

Operating System

Linux (NixOS), Wayland (Hyprland)

Terminal

Alacritty

Originally created by @michalrus on GitHub (Feb 11, 2026). Originally assigned to: @kommander on GitHub. ### Description On Wayland (Hyprland), Linux, I can't use `sleep 1 && wtype 🍄` from another terminal to type into `opencode` CLI. It works with any other terminal or graphical app. `wtype <unicode-emoji>` is often used by emoji pickers on Wayland. _Pasting_ the emoji works, only typing it in with `wtype` is broken. `wtype é` works – this highlights “non‑BMP only” rather than general Unicode. `LANG`/`LC_CTYPE` are all `en_US.UTF-8`. ### Plugins none ### OpenCode version 1.1.47 ### Steps to reproduce 1. Run `opencode` on Wayland, Linux. 2. In a separate terminal run `sleep 1 ; wtype 🍄`, and immediately switch focus to the terminal running `opencode`. 3. Instead of a mushroom, you see `��`. 4. Optionally verify the byte codes of `��` vs the 🍄: ``` ❯ printf '��' | xxd 00000000: efbf bdef bfbd ❯ printf '🍄' | xxd 00000000: f09f 8d84 ``` ### Screenshot and/or share link <img width="100%" alt="Image" src="https://github.com/user-attachments/assets/b7bf6a28-66a3-4d15-b57f-8377162717eb" /> ### Operating System Linux (NixOS), Wayland (Hyprland) ### Terminal Alacritty
yindo added the opentuibug labels 2026-02-16 18:11:39 -05:00
Author
Owner

@sid200727 commented on GitHub (Feb 11, 2026):

Hi, I’d like to investigate this issue.
I’ll try to reproduce it on Wayland and look into how input is handled for non-BMP Unicode characters.
I’ll report back with findings before proposing changes.

@sid200727 commented on GitHub (Feb 11, 2026): Hi, I’d like to investigate this issue. I’ll try to reproduce it on Wayland and look into how input is handled for non-BMP Unicode characters. I’ll report back with findings before proposing changes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9101