Gemini CLI patch strips leaked thought blocks from history turns

DavidAPierce · ghdev · 2026-07-23

This PR fixes a Gemini CLI bug where thought: true parts could leak into getHistoryTurns when context management is disabled.

What changed

Why it matters

Without this scrub, leaked thought blocks could produce duplicate reasoning segments or confuse later turns in the conversation.

Original post →

More from coding & agent

coding & agent channel →