Trouble with Gemini history
LLM apps2 posts from 2 people2d active+11 post in the last 7 days, 1 the 7 days before (steady)Unverified
Posts per day
The posts behind it
2, newest firstConnection cut after a `functionCall` chunk: the tool still runs, but history is rolled back and the next request carries an orphaned `functionResponse`### What happened? The model's streamed response delivers a complete `functionCall` part, and then the connection drops before the stream finishes ("API Error: terminated"). Gemini CLI then does two inconsistent things: 1. **It still executes the tool.** `useGeminiStream`...google-gemini/gemini-cli · Jingyi-A-Chen1 repliesOpen ↗[Bug]: Gemini convert_to_gemini_tool_call_result raises unhandled 500 on orphaned tool_result messages after history truncation### What happened? When routing long agentic sessions (e.g. Claude Code CLI via `/v1/messages` or `/v1/chat/completions`) to `gemini/` or `vertex_ai/gemini-*` models, client-side context management or history truncation can drop older `assistant` turns containing `tool_use` /...BerriAI/litellm · wgordon172 repliesOpen ↗
Companies and products named
About this problem
Evidence
2 posts from 2 people in 2 places, about 2 a week over 7 days. Mostly on BerriAI/litellm, google-gemini/gemini-cli. Tools named alongside: Claude Code.
Frustration Frustration 0 of 3· Seen on GitHub issues
How it was grouped
Posts about Gemini with no known issue, sharing the word "history". First post Oct 14, 2026, latest Oct 20, 2026. Unverified: fewer than 3 posts, or one person or place only. Method
Other Gemini problems
Trouble with Gemini studioGemini upgrades break working setupsGemini runs out of memoryTrouble with Gemini antigravityTrouble with Gemini chatGemini rate limits and usage caps block workTrouble with Gemini flashTrouble with Gemini tierTrouble with Gemini galleryGemini gives confidently wrong answersTrouble with Gemini googleTrouble with Gemini command
History
Trouble with Gemini history (2 posts)