You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Viewing local GIF files crashes/ruins the CLI session #2468
gradual multi-turn image accumulation triggers the same failure mode
This isn't limited to single large files, my sessions crash and get corrupted where I can't resume them and reach the same unrecoverable state when many normal-sized images (screenshots, PNGs) accumulate across a long session.
I had a 78-turn session doing screenshot-based reference work. Each turn included a pasted screenshot (~copilot-image temp PNGs), some turns also referenced art files in a local directory. Everything worked fine through ~turn 76. By turn 77, the session started showing (repeated once per prior image in the conversation history)! Images and/or native document attachments were removed from the request due to size constraints. Followed by: Request failed due to a transient API error. Retrying...
By turns 77-78, assistant responses were completely empty (NULL) -- the session was permanently dead. No recovery possible without starting a new session.
Root cause is the same: inline base64 image payloads accumulate in the conversation history sent with each API request for some reason. Unlike text, which compacts relatively well, images are enormous and grow linearly with turn count. There's no eviction or out-of-line storage for old image payloads.
Can we get something that
Auto-evict image payloads from older turns after they've been processed (keep a text summary/filename reference instead)
Add a cumulative image payload size guard, not just per-file
Warn the user before the session becomes unrecoverable
This appears to be resolved as of GitHub Copilot CLI v1.0.103. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.
Activity
EdwinGarcia commentedon May 15, 2026
Here's my +1 to this issue.
gradual multi-turn image accumulation triggers the same failure mode
This isn't limited to single large files, my sessions crash and get corrupted where I can't resume them and reach the same unrecoverable state when many normal-sized images (screenshots, PNGs) accumulate across a long session.
I had a 78-turn session doing screenshot-based reference work. Each turn included a pasted screenshot (~copilot-image temp PNGs), some turns also referenced art files in a local directory. Everything worked fine through ~turn 76. By turn 77, the session started showing (repeated once per prior image in the conversation history)
! Images and/or native document attachments were removed from the request due to size constraints.Followed by:Request failed due to a transient API error. Retrying...By turns 77-78, assistant responses were completely empty (NULL) -- the session was permanently dead. No recovery possible without starting a new session.
Root cause is the same: inline base64 image payloads accumulate in the conversation history sent with each API request for some reason. Unlike text, which compacts relatively well, images are enormous and grow linearly with turn count. There's no eviction or out-of-line storage for old image payloads.
Can we get something that
Related issues: #965 (single large PNG → 413), microsoft/vscode#295334 (long session + PNG → renderer crash), microsoft/copilot-intellij-feedback#1242 (multi-turn image → permanent 413)
Environment: Copilot CLI 1.0.49, Windows
copilot-cli-bot commentedon Oct 26, 2026
This appears to be resolved as of GitHub Copilot CLI v1.0.103. Please update to that release or a newer stable version. We're closing this as completed. If it still happens, please comment with your version and reproduction steps.