macOS: Chinese IME loses composer focus after activating Codex by clicking Pet
Summary
On macOS, activating the Codex app by clicking the Codex Pet can leave the message composer in a broken focus/IME state. The composer appears to receive some keyboard events, but Chinese IME text cannot be entered or committed, and the caret is not visible.
Environment
- Platform: macOS 26.5.1 (Build 25F80)
- Codex app bundled CLI: codex-cli 0.140.0-alpha.19
- System
codex --version: codex-cli 0.128.0 - Input method: WeType / WeChat Input Pinyin (
com.tencent.inputmethod.wetype.pinyin) - Feature involved: Codex Pets
Steps to reproduce
- Enable Codex Pet on macOS.
- Open a Codex thread with the message composer visible.
- Switch from Codex to another app.
- Click the Codex Pet to return to Codex.
- Try typing Chinese into the composer.
Actual behavior
- The composer has no visible caret.
- Chinese IME input cannot be entered or committed.
- Numbers and symbols can still be typed.
- Switching to another app and then back to Codex restores the composer/input state.
Expected behavior
Clicking the Codex Pet should fully activate the Codex window and restore composer focus, including the macOS IME composition target, so Chinese input works normally.
Workaround
Switching to another app and back to Codex restores input. Avoiding Pet-based activation also appears to avoid the issue.
Notes
No logs are attached because this appears to be a UI focus / IME activation issue and I do not want to include local session contents unnecessarily.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗