Skip to content

Tab key triggers submit instead of autocomplete in Codex CLI prompt #13089

Closed as duplicate

Description

@reynaldoponcealmeri

What version of the Codex App are you using (From “About Codex” dialog)?

codex-cli 0.106.0

What subscription do you have?

plus

What platform is your computer?

macos

What issue are you seeing?

Environment

  • OS: macOS 14.x (arm64)
  • Shell: zsh
  • Terminal: iTerm2 / Apple Terminal
  • Codex CLI version: (run codex --version)

Issue Description

In the Codex CLI interactive prompt, pressing the Tab key triggers submission (equivalent to Enter) instead of performing shell-style autocompletion.

This breaks the expected terminal workflow, where Tab normally completes:

  • File paths
  • Commands
  • Flags
  • Previous tokens

Expected Behavior

Pressing Tab should:

  • Autocomplete file paths or commands
    OR
  • Provide a configurable option to choose between:
    • Tab = autocomplete
    • Tab = submit

Actual Behavior

Tab submits the prompt immediately, similar to pressing Enter.

Impact

This disrupts muscle memory and standard CLI ergonomics, particularly when working with file paths or long commands.

Suggestion

Add:

  1. Native Tab autocompletion support
    OR

  2. A configuration option in ~/.codex/config.toml such as:

    tab_behavior = "autocomplete" # or "submit"

Thank you.

What steps can reproduce the bug?

Environment

  • OS: macOS 14.x (arm64)
  • Shell: zsh
  • Terminal: iTerm2 / Apple Terminal
  • Codex CLI version: (run codex --version)

Issue Description

In the Codex CLI interactive prompt, pressing the Tab key triggers submission (equivalent to Enter) instead of performing shell-style autocompletion.

This breaks the expected terminal workflow, where Tab normally completes:

  • File paths
  • Commands
  • Flags
  • Previous tokens

Expected Behavior

Pressing Tab should:

  • Autocomplete file paths or commands
    OR
  • Provide a configurable option to choose between:
    • Tab = autocomplete
    • Tab = submit

Actual Behavior

Tab submits the prompt immediately, similar to pressing Enter.

Impact

This disrupts muscle memory and standard CLI ergonomics, particularly when working with file paths or long commands.

Suggestion

Add:

  1. Native Tab autocompletion support
    OR

  2. A configuration option in ~/.codex/config.toml such as:

    tab_behavior = "autocomplete" # or "submit"

Thank you.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Feb 28, 2026
  2. added
    bug
    CLI
    TUI
    on Feb 28, 2026
  3. github-actions commented on Feb 28, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. etraut-openai commented on Feb 28, 2026

    @etraut-openai
    Contributor

    This is a duplicate of #12939.

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

    CLITUIappbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions