OpenCode v1.14.21: LSP Diagnostics, C# Roslyn, Session Compaction

OpenCode v1.14.21 brings LSP diagnostic support for C# and Kotlin, switches to Roslyn for C# language server, improves session compaction for long threads, and fixes project detection for bare Git repos.

OpenCode v1.14.21: LSP Diagnostics, C# Roslyn, Session Compaction

TL;DR

  • LSP diagnostic support for C# (now using Roslyn) and Kotlin
  • Better session compaction keeps more context in long threads
  • Fixed project detection for bare Git repos and worktrees
  • UTF-8 BOM preservation when editing files

New

  • LSP diagnostics from language servers — Pull diagnostics directly from LSP servers including C# and Kotlin for better inline error reporting
  • Roslyn Language Server for C# — Replaced csharp-ls with Roslyn for improved C# support and diagnostics
  • Mistral Small reasoning variant — Added high reasoning option for supported Mistral Small models

Fixed

  • Project detection for bare repos and worktrees — Fixed caching logic so bare Git repositories and worktrees are detected correctly
  • Session compaction context retention — Improved algorithm so long threads preserve more useful context when older history is summarized
  • UTF-8 BOM preservation — Files edited, patched, or rewritten through tools now keep their UTF-8 BOMs intact
  • Invalid session handling — TUI now fails fast when opening missing or invalid sessions instead of starting in a broken state
  • Upgrade check skip — Skip version upgrade checks when auto-update is disabled by the user
  • Project avatar consistency — Avatar previews now match between sidebar and edit dialog
  • Project icon overrides — Uploaded icons and color fallbacks now behave correctly in the edit dialog
  • Linux desktop metadata — Improved app listings and categorization for Linux desktop environments
  • Kimi model variants — Hide unsupported variants for Kimi models that don't expose them

Update via: opencode upgrade or download from GitHub releases

Source: OpenCode