codex - 💡(How to fix) Fix Embedded terminal duplicates/stales characters when switching from Chinese Pinyin IME to English via Caps Lock on macOS

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

26.506.31421 (2620)

What subscription do you have?

plus

What platform is your computer?

macOS 26.3.1 (a) (25D771280a)

What issue are you seeing?

This issue occurs in the Codex App embedded terminal (the built-in terminal inside Codex), not macOS Terminal or iTerm.

When typing using the macOS Chinese Pinyin IME and switching to English input via Caps Lock during IME composition, the terminal visually renders duplicated/stale characters.

Example flow:

  1. Switch to Chinese Pinyin input
  2. Start typing in composition mode (example: gi)
  3. Before confirming the composition, press Caps Lock to switch to English input
  4. Continue typing

The terminal may visually render corrupted/duplicated text such as:

g igi

Expected input:

git

This appears to be a rendering/input-state issue in the embedded terminal. The command may still execute correctly, but the displayed text becomes incorrect.

What steps can reproduce the bug?

  1. Open Codex App

  2. Open any project

  3. Open the embedded terminal inside Codex

  4. Switch macOS input method to Chinese Pinyin IME

  5. Start typing in Chinese composition mode

Example:

gi

Do not confirm the IME composition.

  1. Press Caps Lock to switch to English input

  2. Continue typing

Example:

t

Result

Instead of rendering:

git

the terminal may display duplicated/corrupted text such as:

g igi

Notes

  • Reproducible consistently
  • Happens only in the Codex embedded terminal
  • Does NOT reproduce in macOS Terminal or iTerm
  • Seems related to IME composition + Caps Lock switching

What is the expected behavior?

The embedded terminal should correctly handle macOS Chinese IME composition.

Switching from Chinese Pinyin input to English using Caps Lock during composition should not duplicate characters or corrupt the terminal input state.

Expected:

git

instead of duplicated/corrupted output like:

g igi

Additional information

Environment:

  • Codex App: 26.506.31421 (2620)
  • macOS: 26.3.1 (a) (25D771280a)
  • Device: Mac mini
  • Input Method: macOS built-in Chinese Pinyin IME

This issue appears to affect the embedded terminal only.

I suspect this may be related to terminal rendering, IME composition handling, or Caps Lock language switching behavior.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Embedded terminal duplicates/stales characters when switching from Chinese Pinyin IME to English via Caps Lock on macOS