Skip to content

Bash mode history #19613

Closed
Closed

Description

@tom-huntington

What variant of Codex are you using?

CLI

What feature would you like to see?

Once in bash mode, I would like to be able to press up on by keyboard to get recent commands.

I would like the history of previous commands, to persist even after starting a new session /new

P.S. Maybe should should rename it shell mode for windows powershell users.

Additional information

No response

Activity

  1. added
    enhancement
    on Apr 26, 2026
  2. added
    CLI
    TUI
    session
    windows-os
    on Apr 26, 2026
  3. removed
    windows-os
    CLI
    session
    on Apr 26, 2026
  4. etraut-openai commented on Apr 26, 2026

    @etraut-openai
    Contributor

    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.

  5. added a commit that references this issue on Apr 27, 2026
    0e2300c
  6. etraut-openai commented on Apr 27, 2026

    @etraut-openai
    Contributor

    This will be addressed in the next release.

  7. tom-huntington commented on Apr 28, 2026

    @tom-huntington
    Author

    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.

  8. added a commit that references this issue on May 7, 2026
    9f0c543
  9. added a commit that references this issue on Jun 27, 2026
    cab3ea7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions