macOS: Right Arrow / Ctrl-F don’t accept inline (ghost-text) suggestions in Codex CLI

Resolved 💬 2 comments Opened Sep 25, 2025 by aliberson Closed Jan 13, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

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

  1. Launch Codex in a git repo: codex
  2. Start typing a prompt until a grey inline suggestion appears (e.g., “Improve documentation in @filename”).
  3. 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

View original on GitHub ↗

2 Comments

etraut-openai contributor · 7 months ago

Closing stale bug.

fatshin · 2 months ago

Still reproducing on a current Codex CLI build.

Environment:

  • Codex CLI: codex-cli 0.135.0
  • macOS: 26.5 (25F71), Apple Silicon (arm64)
  • Shell: zsh
  • TERM: xterm-256color
  • Terminals tested: Warp and macOS Terminal.app

What I see:

  • Codex shows a grey/ghost suggestion such as Summarize recent commits.
  • Pressing Tab does nothing.
  • Pressing Right Arrow (→) does not accept the suggestion.
  • Pressing Ctrl-F does not accept the suggestion.
  • The same behavior occurs in both Warp and Terminal.app, so this does not appear to be Warp-specific.

Expected:

  • There should be a working keybinding to accept the ghost suggestion, or the UI should show the correct keybinding.

Given this still reproduces on 0.135.0, could this be reopened?