[Linux] Keyboard input ignored under Wayland/X11 with IBus
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 125k
- Forks
- 19.4k
- PR merge metrics
- PR metrics pending
Description
Environment
- Ubuntu 24.04.4 LTS
- GNOME session using Wayland
- Codex Desktop Linux package:
chatgpt26.901.51231 - Renderer running with
--ozone-platform=x11 - IBus enabled:
XMODIFIERS=@im=ibusandQT_IM_MODULE=ibus
Bug
Mouse input, scrolling, buttons, and navigation work normally. However, keyboard input is completely ignored in Codex text fields: letters, Backspace, arrow keys, and Enter do nothing. The keyboard works normally in every other application. Pasting through the context menu also does not insert text.
Reproduction
- Start Ubuntu GNOME in a Wayland session.
- Launch Codex Desktop normally from the application menu.
- Focus the Codex message field.
- Type or paste text.
- No keyboard input is received, although the rest of the UI remains functional.
Cause indication and workaround
The issue appears to be an Electron X11/IBus input-method incompatibility when Codex runs inside a Wayland session. The application also logs an inability to connect to IBus during startup.
After fully restarting Codex with:
GTK_IM_MODULE=xim /usr/bin/chatgpt
keyboard input works immediately again. This isolates the problem to the IBus/X11 input integration rather than the keyboard hardware.
Expected fix
Please update the Linux launcher to handle IBus correctly, or automatically use GTK_IM_MODULE=xim for affected X11/XWayland sessions. Native Wayland input-method support would also avoid this compatibility issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Linux launcher invoked as /usr/bin/chatgpt and inspect how it sets input-method environment variables for X11/XWayland sessions. Reproduce the issue in the stated Ubuntu Wayland environment, then verify that launching with the affected IBus configuration no longer blocks typing and pasting in Codex text fields.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, linux, ubuntu
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100