codex - 💡(How to fix) Fix TUI shortcut to jump between user prompts in the transcript

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 feature would you like to see?

Add keyboard shortcuts in the Codex CLI TUI to jump between user prompt blocks in the current transcript, so users can quickly revisit the assistant output that followed a previous prompt.

For example:

  • Jump to previous user prompt: Alt+Up or another available shortcut
  • Jump to next user prompt: Alt+Down or another available shortcut
  • Keep the selected prompt and the assistant output immediately below it visible
  • Ideally support repeated jumps through the whole visible/current session transcript

Why is this useful?

In longer Codex CLI sessions, it is common to ask several prompts and later want to review the output underneath one of the recent prompts. Today, this usually requires manual terminal scrollback or text search. That works, but it is slow and imprecise when the transcript is long or when prompts have similar wording.

Prompt-to-prompt navigation would make it much easier to inspect earlier answers, compare outputs from recent prompts, and recover context without leaving the keyboard.

Related but different issues

This overlaps with existing navigation/history requests, but I think it is a distinct workflow:

  • #2622 asks for interactive reverse search through prompt history, mainly to find and reuse previous prompts.
  • #1064 asked for broader in-TUI scroll navigation such as PageUp/PageDown and Home/End.
  • #14277 discusses scrollback preservation with --no-alt-screen in xterm.js-based terminals.

This request is specifically about navigating between user prompt anchors inside the current Codex CLI transcript, with the goal of quickly reaching the assistant output under each prompt.

Suggested UX

One possible behavior:

  1. User presses the shortcut for previous prompt.
  2. The TUI scroll position moves to the previous user prompt block.
  3. The prompt is placed near the top of the viewport, leaving the following assistant output visible below it.
  4. Repeating the shortcut moves to older prompts; the opposite shortcut moves forward again.

Are you interested in implementing this feature?

No, but I would be happy to test and provide feedback.

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