# OpenCode 1.19.6 caps image history and retries oversized request errors

> OpenCode 1.19.6 replaces the oldest images in a session once its history passes 25 MiB and retries provider errors for oversized requests.

- Status: official (From the company, authors or authority themselves, with a link to their own page.)
- Topic: Products
- Published: 2026-11-17T07:21:32+00:00
- Updated: 2026-11-17T08:08:30.122571+00:00
- Web page: https://ai-news.ikangai.com/story/opencode-1-19-6-caps-image-history-and-retries-oversized-request-errors/
- Seen in: opencode releases
- Change: breaking_change (Breaking change)
- Applies to: OpenCode 1.19.6

## What changed

OpenCode 1.19.6 replaces the oldest images in a session with a placeholder once its history passes 25 MiB, and on a provider error for an oversized request body it now starts compaction and a retry instead of failing the turn.

OpenCode 1.19.6 changes how the tool handles sessions that have grown too large for a provider to accept. According to the release notes, when the images in a session's history pass 25 MiB, the oldest are replaced with a placeholder, so requests stop being sent in an oversized form. The same release changes what happens when a provider rejects a request body for being too large. Previously the turn failed. Now OpenCode starts compaction and retries the request.

The release notes do not say whether the 25 MiB threshold applies to the encoded size of the images or their raw size. They also do not name the providers or models affected. The change is filed as a bugfix, and the notes frame it as preventing oversized requests in the first place. The retry is described only as the response to a provider error for a request body that is too large.

The release notes also list a desktop change that is unrelated to the image handling. OpenCode 1 now offers an upgrade to OpenCode 2.0. According to the notes, OpenCode 2 downloads in the background and installs only when the user chooses Restart to upgrade, Upgrade on quit, or Later. Sessions, projects and settings are kept, but plugins written for OpenCode 1 need an update. That note is separate from the image and retry fixes and is included here only for completeness.

The page does not include test results, a changelog diff or a list of commits that introduced the change. The description of the behavior therefore rests on the maintainers' own summary.

## Why it matters

Long agent sessions with many screenshots or images are less likely to stop with a request-size error. Teams should expect the oldest images in such sessions to appear as placeholders.

## What you can do

If your team runs long image-heavy OpenCode sessions, update to v1.19.6 and check that older images are not needed for the work.

## Original source

- [Release v1.19.6 · anomalyco/opencode · GitHub](https://github.com/anomalyco/opencode/releases/tag/v1.19.6)

---

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it.

Cite as: IKANGAI AI News, "OpenCode 1.19.6 caps image history and retries oversized request errors", 2026-11-17, https://ai-news.ikangai.com/story/opencode-1-19-6-caps-image-history-and-retries-oversized-request-errors/
