Skip to content

@file does not work when modified in external editor #14919

@jdreddaway-google

Description

@jdreddaway-google

What happened?

If I create a prompt in an external editor using ctrl-X, and that prompt has files included using the @path/to/file syntax, Gemini CLI does not automatically load those files immediately upon pressing enter. It looks like the LLM has to initiate the read of those files itself, wasting tokens.

What did you expect to happen?

@files are immediately loaded upon sending the prompt to Gemini CLI.

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to User Interface, OS Support, Core Functionalityhelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!priority/p2Important but can be addressed in a future release.type/bug

    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