Skip to content

Codex TUI treats scoped npm package strings as @ file mentions and blocks normal Enter submit #12175

@simonsickle

Description

@simonsickle

What version of Codex CLI is running?

codex-cli 0.103.0

What subscription do you have?

Enterprise

Which model were you using?

gpt-5.3-codex

What platform is your computer?

Darwin 25.3.0 arm64 arm

What terminal emulator and version are you using (if applicable)?

iTerm2

What issue are you seeing?

##Observed:
Reproducible before fix commit 80791c2 (authored on February 18, 2026)

##Summary:
When a prompt contains a scoped npm package with a version suffix (example: @kaeawc/auto-mobile@latest), the composer incorrectly activates @ file-search behavior instead of treating the token as plain text.

Actual Result:

TUI freezes and Enter does not behave like a normal submit for that prompt.

Impact:

Users pasting common npm commands with scoped packages can’t reliably submit prompts, which interrupts normal chat flow.

What steps can reproduce the bug?

  1. Open Codex TUI and focus the chat composer.
  2. Type: npx -y @kaeawc/auto-mobile@latest
  3. Press Enter.

What is the expected behavior?

Prompt is submitted as typed.

Additional information

Likely Root Cause:

Mention parsing accepts @-prefixed tokens even when the remainder includes a second @ (package version syntax), causing false-positive mention detection.

Additional context:

I did fix this on my own branch via codex 5.3

https://github.com/simonsickle/codex/tree/simonsickle/fix-file-search-tui

The fix seemed reasonably small

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions