You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the suggestion. I agree on both accounts — this should be called "Shell mode", and these commands should be saved into the global history buffer.
Codex TUI should be more explicitly modal (i.e. vim/kakoune/helix) imo.
If you are writing your prompt (insert mode), you can press escape to enter normal mode, from where you can enter shell mode with ! or command mode with /
You have a list of buffers (either prompts or shell mode commands) that you can edit/rerun and reorder. At the moment, you can only build a request in the form user_shell_command* user_message.
In normal mode, you can change which of the buffers is focused.
The current UX where ! and / from a empty prompt, send you into their respective modes is good. You could preserve this happy path, while adding more advanced functionality.
Activity
etraut-openai commentedon Apr 26, 2026
Thanks for the suggestion. I agree on both accounts — this should be called "Shell mode", and these commands should be saved into the global history buffer.
Persist shell mode commands in prompt history (#19618)
etraut-openai commentedon Apr 27, 2026
This will be addressed in the next release.
tom-huntington commentedon Apr 28, 2026
Thanks! This will be appreciated.
You asked my thoughts in #17515
Codex TUI should be more explicitly modal (i.e. vim/kakoune/helix) imo.
If you are writing your prompt (insert mode), you can press escape to enter normal mode, from where you can enter shell mode with
!or command mode with/You have a list of buffers (either prompts or shell mode commands) that you can edit/rerun and reorder. At the moment, you can only build a request in the form
user_shell_command* user_message.In normal mode, you can change which of the buffers is focused.
The current UX where
!and/from a empty prompt, send you into their respective modes is good. You could preserve this happy path, while adding more advanced functionality.Persist shell mode commands in prompt history (openai#19618)
Persist shell mode commands in prompt history (openai#19618)