gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Slow @ completion when using a remote filesytem

Open bbiggs opened this issue 1 year ago • 3 comments

Describe the bug

If you use @... to complete in the prompt when located in a remote filesystem, it can be very very slow as it searches for the filename.

Additional context The completion code currently searches for the target file using a ** glob, which will recursively look for the file from the current directory path. In a large tree or a remote filesystem, this can be catastrophically slow. It seems we can either remove the feature, make it a configurable option, or somehow be smarter or bounded in how far we look for the given filename.

bbiggs avatar Jun 21 '25 19:06 bbiggs

The change to add a setting was merged in, but I think we can improve the behaviour on a remote filesystem even when the feature is used, so we should keep this bug open.

bbiggs avatar Jun 22 '25 02:06 bbiggs

Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.

It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.

Thank you for your contribution!

gemini-cli[bot] avatar Dec 03 '25 21:12 gemini-cli[bot]

This issue describes a failure in the core file-reading tools (read_file and read_many_files) on Windows, which significantly impacts the agent's efficiency. I am assigning priority/p1 as it degrades the experience without a global block. Additionally, the CLI version (0.1.7) is significantly outdated compared to the current version (0.61.0), so the user needs to verify if the issue persists in the latest version.

gemini-cli[bot] avatar Sep 15 '26 12:09 gemini-cli[bot]