openai / openai/codex

[Linux] Keyboard input ignored under Wayland/X11 with IBus

Open
#46,538 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug Linux
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: chatgpt 26.901.51231
  • Renderer running with --ozone-platform=x11
  • IBus enabled: XMODIFIERS=@im=ibus and QT_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

  1. Start Ubuntu GNOME in a Wayland session.
  2. Launch Codex Desktop normally from the application menu.
  3. Focus the Codex message field.
  4. Type or paste text.
  5. 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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.