Codex CLI: TUI Prompt History Search with Ctrl+R
Codex CLI 0.121.0 introduces interactive prompt history search to the terminal UI, letting developers press Ctrl+R to open a reverse-search popup over their full prompt history β just like shell history search. Codex also now automatically recalls accepted slash commands into local history.
Sources & Mentions
4 external resources covering this update
A Familiar Shortcut, Finally in Codex
Developers who spend their days in the terminal know Ctrl+R by muscle memory β it opens an interactive reverse-search over bash or zsh command history. Codex CLI 0.121.0 brings that same paradigm to the TUI composer.
How It Works
Pressing Ctrl+R inside the Codex TUI composer opens a History Search popup. While the popup is active, typing filters through the full prompt history using fuzzy matching. Arrow keys navigate between results, Enter inserts the selected entry directly into the composer (including any pending attachments), and Esc cancels and restores whatever was in the draft before the search opened.
The feature covers both session history and persistent history stored from prior Codex sessions.
Slash Command Recall
Alongside Ctrl+R, Codex 0.121.0 also adds local recall for accepted slash commands. Previously, slash command inputs were not preserved in prompt history. Now, any accepted slash command is automatically added to local history, making it possible to search and re-apply common slash workflows without re-typing them.