OpenCode v1.4.0

OpenCode v1.4.0 was released on .

Summary

Breaking Changes in SDK Due to some performance issues we had to make a few breaking changes in our data model. Diff metadata The diffs contained in the metadata for the edit and patch tool will no...

Release Context

  • This was the 79th OpenCode release of 2026 tracked by Havoptic.
  • It shipped 2 days after OpenCode v1.3.17 (April 6, 2026).

Shipped around the same time

Within 3 days of this release, other AI coding tools also shipped:

Compare OpenCode

Release Notes

Breaking Changes in SDK Due to some performance issues we had to make a few breaking changes in our data model. Diff metadata The diffs contained in the metadata for the edit and patch tool will no longer contain a to and from field with full file contents. they will only contain a patch field with the unified diff Additionally all snapshot diffs contained in user message and session diff will follow this format UserMessage.variant Before the user message had a variant field - it is now nested under model so userMessage.model.variant Core - Added OTLP observability export support. - Fixed failed web fetches leaving stale timeouts behind. - Improved opencode login transport error messages. - Retried Alibaba provider rate-limit errors instead of failing immediately. - Kept model variants scoped to the selected model. - Added full HTTP proxy support. - Fixed OpenRouter provider issues. - Aligned GitHub Copilot Anthropic reasoning levels and removed incorrect Qwen variants. - Reduced TypeScript LSP memory use by using the native project config. (@derekbar90) TUI - Added a keybinding option for "Switch model variant". (@ariane-emory) - Added PDF drag and drop for attachments. (@gitpush-gitpaid) - Added opencode run --dangerously-skip-permissions to auto-approve non-denied permission prompts. Desktop - Improved subagent sessions with clearer titles, navigation, and progress states. - Moved auto-accept permissions into Settings. - Showed full file names on attachment chips. Thank you to 4 community contributors: - @derekbar90: - fix(lsp): MEMORY LEAK: ensure typescript server uses native project config (19953) - @mchenco: - docs: update Cloudflare provider setup to reflect /connect prompt flow (20589) - @gitpush-gitpaid: - feat(opencode): Add PDF attachment Drag and Drop (16926) - @ariane-emory: - fix(tui): use sentence case for theme mode command palette items (21192) - feat(tui): allow variantlist keybind for the "Switch model variant" command (21185)

View original release

Other Recent OpenCode Releases

Upgrading from v1.4.0? See all 132 releases since.

All OpenCode releases · All AI coding tool releases on Havoptic