OpenCode 1 adds an optional upgrade to OpenCode 2.0
Brief
OpenCode v1.19.6 adds an optional upgrade path to OpenCode 2.0 and fixes two cases where oversized requests could disrupt a turn.
Upgrade to OpenCode 2.0
- The upgrade downloads in the background and installs when the user chooses: Restart to upgrade, Upgrade on quit, or Later.
- Sessions, projects, and settings are kept; plugins made for OpenCode 1 need an update.
Request handling fixes
- When images in a session history exceed 25 MiB, the oldest images are replaced with a placeholder.
- A provider error caused by an oversized request body now triggers compaction and a retry instead of failing the turn.
Generated by AI from the original article. Check the source for full details.