codex - 💡(How to fix) Fix Add TUI option to preserve Vim mode after submitting prompts

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…

Vim mode in the Codex CLI TUI currently returns to Normal mode after a prompt is submitted. For users who mostly continue typing follow-up prompts, it would be useful to preserve the current Vim mode after prompt submit, especially Insert mode.

Root Cause

Vim mode in the Codex CLI TUI currently returns to Normal mode after a prompt is submitted. For users who mostly continue typing follow-up prompts, it would be useful to preserve the current Vim mode after prompt submit, especially Insert mode.

Fix Action

Fix / Workaround

I would keep slash-command dispatch unchanged unless maintainers prefer this option to cover all composer dispatch paths.

Code Example

[tui]
vim_mode_after_submit = "preserve"
RAW_BUFFERClick to expand / collapse

Summary

Vim mode in the Codex CLI TUI currently returns to Normal mode after a prompt is submitted. For users who mostly continue typing follow-up prompts, it would be useful to preserve the current Vim mode after prompt submit, especially Insert mode.

Proposed behavior

Add a TUI config option, for example:

[tui]
vim_mode_after_submit = "preserve"

Suggested values:

  • normal default: keep current behavior
  • preserve: keep active Vim mode after successful prompt submit or queued prompt

I would keep slash-command dispatch unchanged unless maintainers prefer this option to cover all composer dispatch paths.

Why

Submitting from Insert mode and immediately continuing to type currently requires entering Insert mode again after every turn. Preserving mode would make Vim mode less disruptive while keeping existing behavior as the default.

Notes

I noticed the contributing guide says unsolicited PRs are not accepted, so I am filing this as an issue/proposal rather than opening a PR.

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