Skip to content

[Bug]: @-mention autocomplete never suggests any file or directory whose name starts with a dot #6175

Description

@pollylol

Before you submit

  • I searched existing issues and confirmed this is not a duplicate.
  • I replaced the example text with the real behavior, reproduction steps, expected result, and version from the app's About menu or od --version.

What happened?

When referencing project files from the chat composer with @, entries whose names start with . never appear as suggestions — not one specific folder, but every dot-prefixed file and directory. Common ecosystem examples such as .github/, .vscode/, .storybook/, .husky/, or a plain .notes.md file are all invisible. Typing @.github produces zero suggestions even though the directory exists in the project. The same filter also excludes dot-prefixed entries from project-wide file search, so such content is unreachable from both the mention picker and search.

Steps to reproduce

  1. Create a project (or import a folder) that contains a directory or file whose name starts with ., e.g. .github/ or .vscode/settings.json.
  2. Open the project and focus the chat composer.
  3. Type @ followed by the exact name, e.g. @.github.
  4. Observe that no suggestion appears. A non-dot-prefixed name of the same shape does appear.

Expected behavior

Dot-prefixed user-content files and directories should be mentionable and searchable. Hiding system/generated directories (.git, daemon scratch dirs) from the UI is understandable, but the current implementation is a blanket startsWith('.') filter rather than an explicit ignore list, so it also hides legitimate user content that follows common dot-directory conventions.

Open Design version

0.16.1

Platform

Windows

Logs (optional)

Screenshots (optional)

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions