Skip to content

Accidental prompts using the Tab key #12939

Closed as not planned
Closed as not planned

Description

@mihaifm

The Tab key was added as a shortcut to queue prompts. But it also autocompletes paths. It can easily trigger an incomplete prompt when you're just trying to autocomplete a file name. Is there a way to change this behavior?

Activity

  1. added
    enhancement
    CLI
    TUI
    on Feb 26, 2026
  2. github-actions commented on Feb 26, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. removed
    CLI
    on Feb 27, 2026
  4. oxysoft commented on Mar 14, 2026

    @oxysoft

    Linking #14673 because it frames the broader UX that makes this Tab collision matter.

    If Codex supports shell-like path completion directly in the composer for inline path-shaped tokens, then Tab / completion behavior needs to be designed as a real first-class interaction instead of colliding with prompt queueing.

    That means the feature request and the accidental-send/collision issue are really two sides of the same design seam.

  5. tick10 commented on Mar 20, 2026

    @tick10

    I implemented an opt-in version of this on top of current main.

    It adds:

    [tui]
    queue_key = "enter"

    Default remains tab, but enter lets users keep Tab for completion/navigation.

    Compare view:
    https://github.com/openai/codex/compare/main...tick10:fix/configurable-queue-key?expand=1

    Commit:
    aa04bad3d (feat(tui): add configurable queue key)

    This preserves current behavior by default and only adds an opt-in config path.

    Happy to rework it if there's a preferred contribution path.

  6. czr commented on Apr 16, 2026

    @czr

    Additionally, on many common keyboard layouts, the tab key sits between the caps-lock key (which I use all the time) and the backtick key (which I also use all the time). It's way too easy to accidentally hit the tab key during normal typing, let alone for completions, for it to be used as as a submit action of any sort.

  7. chamalulu commented on Apr 22, 2026

    @chamalulu

    Same here. I’d strongly prefer Tab to be reserved for completion in the interactive CLI: use Codex-native completion when available, and fall back to shell completion when Codex has no candidate. If Tab-to-queue/submit remains supported, it should at least be configurable or disabled by default.

  8. kirienko commented on Jul 1, 2026

    @kirienko

    This is extremely annoying!

  9. marconett commented on Jul 21, 2026

    @marconett

    this is insane ux. first time using this software, guess i'll instant uninstall

  10. etraut-openai commented on Jul 22, 2026

    @etraut-openai
    Contributor

    If you'd prefer not to use tab for queueing, you can use the /keymap editor to replace the keybinding for the "Queue" action with some other key or key combination.

  11. youngjoel commented on Aug 13, 2026

    @youngjoel

    40 years of muscle memory down the drain. Tab either completes or inserts a tab. Nothing else. So broken.

  12. kamazee commented on Aug 29, 2026

    @kamazee

    Remapping works indeed.
    Is there any change of reconsidering the default? Tab is barely expected to trigger an action.

  13. memgrafter commented on Sep 22, 2026

    @memgrafter

    Bad choice, hugely popular issue, waste 15 minutes for 12 million engineers. Love you, fix it.

  14. banderlog commented on Oct 7, 2026

    @banderlog

    The first time I launched this AI agent, I immediately stumbled upon this problem, which is not even considered a bug.
    Mapping TAB in TUI for unexpected functionality was an outstanding move indeed.
    Not fixing it in any way feels insane

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