macOS: Chinese IME loses composer focus after activating Codex by clicking Pet
Resolved 💬 2 comments Opened Jun 18, 2026 by santosli Closed Jun 19, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
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.
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Closing this as a duplicate of #27583. The specific Chinese IME details from this report have been added there. Also related: #27525 and #27357.