OpenCode v1.15.6: Diff Viewer, Shell Mode & API Fixes

OpenCode v1.15.6 brings a new diff viewer for the TUI, shell mode for the run prompt, and fixes to plugin loading, API error handling, and Zed editor context scoping.

OpenCode v1.15.6: Diff Viewer, Shell Mode & API Fixes

TL;DR

  • New diff viewer in TUI with collapsible directory trees for reviewing changes
  • Shell mode added to run prompt; subagent tabs replaced with on-demand picker
  • Multiple v2 HTTP API fixes exposing error schemas and catalog/request errors
  • Plugin loading now resilient to file errors; Zed editor context scoped to terminals only

New

  • Diff viewer in TUI — Review file changes directly in the terminal with auto-focused first file and collapsed single-child directories for cleaner navigation
  • Shell mode for run prompt — Execute shell commands alongside agent operations without leaving the interface
  • Desktop tabs support — Initial multi-tab functionality added to the desktop app
  • Windows native app menu — Native menu bar now available on Windows
  • Ukrainian locale — Full UI translation support added

Fixed

  • Plugin file load errors no longer break the rest of plugin loading — graceful degradation for broken plugins
  • Zed editor context now only activates inside Zed terminals — prevents unintended context leakage
  • v2 HTTP API now exposes structured error schemas, catalog errors, and request errors — better error handling for API consumers
  • v2 OpenAPI spec now preserves endpoint error responses — accurate API documentation
  • opencode login now defaults to https://console.opencode.ai — simplified authentication flow
  • Agent and command names resolve correctly from relative config paths — fixes path resolution bugs
  • Invalid OPENCODE_PERMISSION JSON no longer crashes startup — robust permission parsing
  • Plugin tools with missing args no longer break tool loading — defensive plugin validation
  • Restored legacy PgUp and PgDn TUI keybind aliases — backward compatibility for power users
  • Native runtime now prefers console provider token for OpenCode models — correct token precedence
  • Imported sessions now refresh directory and relative path fields correctly
  • Custom providers appear immediately after config updates
  • Anthropic API-key models now use the native runtime

Under the Hood

  • Updated opentui dependencies to 0.2.15

Install: npm install -g opencode@1.15.6 or check the release page for platform-specific downloads.

Source: OpenCode