mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-18 07:43:00 -07:00
87e9491e78
This commit fixes a bug where model text preceding a tool call would be displayed after the tool call in the conversation history. We now explicitly flush any pending agent text to the conversation history (via 'addItem') immediately before a tool request is tracked. This ensures the model's intent is rendered above the execution result.