Skip to content

Conversation

oyiakoumis
Copy link
Contributor

Context

Fixes #2779 – when autocompleting file paths preceded by @, the prefix is currently dropped. For example, typing @REA and selecting README.md yields README.md instead of @README.md.

Root Cause

The completion logic does not restore the leading @ when applying the suggestion.

Solution

Ensure the @ prefix is preserved and prepended to the completed path.

Why This Matters

Preserving the @ allows developers to continue modifying autocompleted paths and still receive further suggestions, since the path remains valid with the @ prefix. Moreover, prompts containing @path are correctly interpreted by the LLM, so retaining the prefix after completion is both accurate and useful.


Closes #2779.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autocomplete after '@' drops '@' when pressing Tab
1 participant