codex - ✅(Solved) Fix Support Ctrl+P / Ctrl+N navigation in /resume picker [1 pull requests, 1 comments, 1 participants]

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…
GitHub stats
openai/codex#18179Fetched 2026-04-17 08:31:47
View on GitHub
Comments
1
Participants
1
Timeline
12
Reactions
0
Author
Participants
Timeline (top)
labeled ×4subscribed ×2unlabeled ×2commented ×1

PR fix notes

PR #18267: Support Ctrl+P/Ctrl+N in resume picker

Description (problem / solution / changelog)

Fixes #18179.

Why

The fullscreen /resume picker accepted Up/Down navigation but ignored Ctrl+P/Ctrl+N, which made it inconsistent with other TUI selection flows such as ListSelectionView-backed pickers and composer navigation.

What Changed

Updated codex-rs/tui/src/resume_picker.rs so the resume picker treats Ctrl+P/Ctrl+N as aliases for Up/Down, including the raw ^P/^N control-character events some terminals emit without a CONTROL modifier.

Changed files

  • codex-rs/tui/src/resume_picker.rs (modified, +63/-19)
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.121.0

What subscription do you have?

OpenAI API key, Enterprise

Which model were you using?

No response

What platform is your computer?

Darwin 25.4.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

Ghostty

What issue are you seeing?

When I trigger /resume and the session picker opens, I can navigate with Up/Down arrows, but Ctrl+P and Ctrl+N do not move the selection. Those shortcuts already work in other Codex TUI flows like ListSelectionView-backed pickers and the textarea/composer, so /resume feels inconsistent.

What steps can reproduce the bug?

  1. Start Codex CLI.
  2. Trigger /resume to open the saved-session picker.
  3. Press Ctrl+P or Ctrl+N.
  4. Notice that the selection does not move, while Up/Down arrows do.

What is the expected behavior?

Ctrl+P should move to the previous session and Ctrl+N should move to the next session, matching the existing keyboard behavior in other Codex TUI pickers and the textarea.

Additional information

This appears to be isolated to the fullscreen resume picker path rather than the shared popup/list selection components. Up/Down already work there; only the Ctrl+P/Ctrl+N aliases are missing.

extent analysis

TL;DR

The issue can be resolved by updating the keyboard shortcut handling in the /resume session picker to match the existing behavior in other Codex TUI pickers.

Guidance

  • Verify that the Ctrl+P and Ctrl+N shortcuts are correctly bound to the previous and next session selection actions in the /resume picker.
  • Check the keyboard event handling code in the /resume picker to ensure it is not overriding the default shortcut behavior.
  • Compare the keyboard shortcut handling in the /resume picker with other Codex TUI pickers, such as ListSelectionView-backed pickers, to identify any inconsistencies.
  • Test the /resume picker with different keyboard layouts and terminal emulators to rule out any environment-specific issues.

Example

No code example is provided as the issue does not include specific code snippets.

Notes

The issue appears to be isolated to the fullscreen resume picker path, and the Up/Down arrows are working as expected. This suggests that the issue is specific to the keyboard shortcut handling in this particular component.

Recommendation

Apply a workaround by manually binding the Ctrl+P and Ctrl+N shortcuts to the previous and next session selection actions in the /resume picker, until a permanent fix is available. This will ensure consistency with the existing keyboard behavior in other Codex TUI pickers.

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

codex - ✅(Solved) Fix Support Ctrl+P / Ctrl+N navigation in /resume picker [1 pull requests, 1 comments, 1 participants]