OpenCode v1.2.6: New Formatters & Provider Updates
OpenCode v1.2.6 adds D and Clojure formatter support, OpenAI-compatible Google Vertex endpoints, and removes wasteful LLM calls. 12 community contributors shipped fixes across core, TUI, and desktop.
TL;DR
- Added dfmt (D language) and cljfmt (Clojure) formatter support
- OpenAI-compatible endpoints now work with Google Vertex AI provider
- Removed wasteful per-message title LLM calls for better performance
- GitLab token refresh and TUI improvements
New
- dfmt formatter support — D language files now format automatically with dfmt integration
- cljfmt formatter support — Clojure files can now be formatted using cljfmt
- OpenAI-compatible endpoints for Google Vertex — Use your own OpenAI-compatible servers with the Google Vertex provider
- Venice parameter support — Added temperature, topP, topK, and smallOption parameters for Venice
- Database migration command — Convert JSON storage to SQLite with a single command
- --continue and --fork flags — New attach command options for better workflow control
- Server directory path in TUI — File references in prompts now use correct server directory paths
Fixed
- Removed unnecessary per-message title LLM calls — reduces API overhead and latency
- GitLab provider and auth plugin — mid-session token refresh now works correctly
- Inaccurate TUI tips — corrected misleading guidance in the terminal interface
- Linux Wayland/X11 backend — normalized decoration policy across desktop implementations
- Desktop process handling — replaced manual job object management with process-wrap library
- User-defined variables priority — now correctly prioritized over environment variables in Google Vertex AI configuration
Update: npm install opencode@1.2.6 or check the release page for other package managers.
Source: OpenCode