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

Consecutive "role=user" contents in history

Open scidomino opened this issue 3 months ago • 5 comments

What happened?

The docs say the role for each Content object should alternate between user and model. But there are at least two situations where we don't do that.

  1. when adding the IDE context.

Image

  1. When canceling function call requests.
Image

What did you expect to happen?

We shouldn't do that.

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

scidomino avatar Sep 10 '25 18:09 scidomino