Skip to content

ReadManyFiles triggered erroneously on pasted input, flooding context window #13487

@jamesheinlein

Description

@jamesheinlein

What happened?

pasting input from another thread (eg, "review what this other agent is working on") often gets picked up as paths to consume, triggering a ReadManyFiles on the entire observable universe, crashing my message.

I'm working with bazel and npm stuff, so some of these paths are prefixed with @, but that's always the case - IIRC it happened even with normal paths - not sure exactly what triggers it.

Overall, it attempts to attach tens of thousands of files and errors out, without clear information on the actual state of my typed message

What did you expect to happen?

Ideally, all of the following:

  • failure returns me to the message editing screen so I can at least delete the pasted parts with paths
  • ability to return to a previous message
  • detect pasted text and skip attempts to parse and pipe to ReadManyFiles

Client information

Client Information

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


│ About Gemini CLI                                                                                                                     │
│                                                                                                                                      │
│ CLI Version                                   0.16.0                                                                                 │
│ Git Commit                                    56f9e597c                                                                              │
│ Model                                         pro                                                                                    │
│ Sandbox                                       no sandbox                                                                             │
│ OS                                            darwin                                                                                 │
│ Auth Method                                   OAuth                                                                                  │

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 Functionalitypriority/p1Important and should be addressed in the near term.

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions