Edit/Resume shows placeholder at cursor despite message input having content

Resolved 💬 0 comments Opened Aug 29, 2025 by mkusaka Closed Nov 26, 2025

What version of Codex is running?

codex-cli 0.27.0

Which model were you using?

gpt-5

What platform is your computer?

Darwin 24.6.0 arm64 arm

What steps can reproduce the bug?

  1. Start codex, type "hi" and press Enter; wait for the agent’s reply
  2. Press Esc twice to open the transcript (history) selection overlay
  3. Select a history entry and press Enter to confirm (Edit/Resume)
  4. After confirming, the message input contains the selected history text; however, the example placeholder prompt (e.g., "implement {feature}") is still rendered at the cursor position even though the input is non-empty

What is the expected behavior?

When resuming/editing from history, the message input should contain only the selected history text. The example placeholder prompt must not be shown when the input has content or when in edit/resume mode.

What do you see instead?

The example placeholder prompt (e.g., "implement {feature}") is incorrectly displayed at the cursor position despite the message input already containing the selected history.

Additional information

https://github.com/user-attachments/assets/5df8bfff-e73d-4f56-8b82-61b93963d81a

  • Full transcript:
 >_ You are using OpenAI Codex in ~/src/github.com/openai/codex

 To get started, describe a task or try one of these commands:

 /init - create an AGENTS.md file with instructions for Codex
 /status - show current session configuration and token usage
 /approvals - choose what Codex can do without approval
 /model - choose what model and reasoning effort to use

user
hi

codex
Hi! How can I help you with the codex-rs repo today?

>_ You are using OpenAI Codex in ~/src/github.com/openai/codex

 To get started, describe a task or try one of these commands:

 /init - create an AGENTS.md file with instructions for Codex
 /status - show current session configuration and token usage
 /approvals - choose what Codex can do without approval
 /model - choose what model and reasoning effort to use


▌himplement {feature}
 ⏎ send   Shift+⏎ newline   Ctrl+T transcript   Ctrl+C quit

View original on GitHub ↗