Skip to content

Allow selecting directories in @ file search #8863

Closed

Description

@muqsitnawaz

What feature would you like to see?

Problem: @ file search in Composer popup only shows files.

Use-Case: When working with a codebase, being able to reference an entire directory (e.g., a library, module, or package) is crucial, models are good enough to do List/Ls and then rg or Read any files they want. Also, not to mention selecting a handful of relevant files one by one takes A LOT of time.

Solution: Show directories in @ search results with a trailing "/" suffix (e.g., "src/utils/"). When selected, the directory path is inserted, allowing the agent to understand which directory the user is referencing.

Additional information

I have a working implementation ready:

  • Adds "/" suffix to directories in file search results
Image
  • Allows selecting directories just like files
Image

Happy to submit a PR once this enhancement is approved

Activity

  1. added
    enhancement
    on Jan 7, 2026
  2. added
    codex-web
    on Jan 7, 2026
  3. added
    extension
    TUI
    and removed
    codex-web
    on Jan 7, 2026
  4. RJUNS commented on Feb 10, 2026

    @RJUNS

    please fix it.

  5. muqsitnawaz commented on Feb 10, 2026

    @muqsitnawaz
    Author

    I made a PR but it was closed by the Open AI Team ~ #8960

    When working in medium to large codebases (think monorepos), being able to tag a directory dramatically reduces Codex's initial exploration time. I'm not sure why it isn't being prioritized.

    Last reason I received was having the roadmap in sync across various Codex versions. But that has already diverged. Codex CLI supports neither projects nor automations. Automations are Cron jobs which OpenClaw offers in the CLI version - it makes sense. But for Codex, you have to use the Codex App which is also pretty buggy at the moment.

    With that said, I understand they have more visibility into what people are asking and I'll leave them to it. It has improved quite a lot over the last couple of months so thanks to the team for putting in the hard work!

  6. removed
    extension
    on Oct 12, 2026
  7. etraut-openai commented on Oct 14, 2026

    @etraut-openai
    Contributor

    (response from codex)

    This is now implemented in the Codex CLI. Directory search and selection were added in #14970: you can type @, search for a directory, and select it to insert its path. The current picker identifies directories with a Dir label.

    Thanks for the suggestion! Closing this as implemented.

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