macOS: Right Arrow / Ctrl-F don’t accept inline (ghost-text) suggestions in Codex CLI
What version of Codex is running?
CLI Version: 0.41.0
Which model were you using?
gpt-5-codex
What platform is your computer?
Darwin 24.6.0 arm64 arm
What steps can reproduce the bug?
Summary
On macOS, Codex CLI shows grey inline (ghost-text) suggestions, but pressing Right Arrow does not accept the suggestion. Using Ctrl-F also fails to accept suggestions. The terminals are sending the expected sequences (verified with cat -v), so the keypress is reaching the TTY, but Codex doesn’t treat it as “accept”.
Steps to reproduce
- Launch Codex in a git repo: codex
- Start typing a prompt until a grey inline suggestion appears (e.g., “Improve documentation in @filename”).
- Press Right Arrow (→).
What is the expected behavior?
The ghost-text suggestion is accepted into the input line.
What do you see instead?
Nothing happens; the suggestion remains ghost text and the cursor simply moves (or no visible effect).
Additional information
Diagnostics / what I tried
• Verified terminals send the correct sequences:
• cat -v then press Right Arrow → prints:
^[[C
(i.e., ESC [ C)
macOS Terminal - doesn't work
iTerm2:
• Profile “Codex” → Keys → Key Bindings:
• Right Arrow → Send Escape Sequence → [C
• Also tried mapping Option+Right → [C
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗