OpenCode v1.2.26: Session Persistence & Desktop Polish

OpenCode v1.2.26 brings session persistence, multi-window support, and fixes for critical session loss bugs. Desktop gets major polish with sidebar animations and improved prompt composer controls.

OpenCode v1.2.26: Session Persistence & Desktop Polish

TL;DR

  • Model selection now persists across sessions in Desktop
  • Session history pagination improves server performance
  • Fixed sessions lost after git init in existing projects
  • Desktop multi-window support added to Electron

New

  • Effect-to-Zod bridge — Scaffold schema conversion for better type safety
  • Text attachments in app — Support for text-based file attachments
  • Session history pagination — Reduces server load with paginated history queries
  • Desktop multi-window support — Electron now handles multiple windows
  • Console account subcommands — New CLI commands for account management
  • Model selection persistence — Selected model now stays with each session in Desktop
  • Bun installation serialization — Configuration now properly serializes for Bun

Fixed

  • Sessions lost after git init — Sessions no longer disappear when running git init in existing projects
  • Empty content blocks in Bedrock — Bedrock provider now filters out empty blocks
  • Scroll behind prompt input — Fixed scroll positioning relative to prompt composer
  • List item background colors — Colors now render correctly in app lists
  • Terminal cloning without retry — Terminal cloning now works without retry logic
  • Sidebar state synchronization — Sidebar state now syncs across the application
  • Prompt composer controls — Improved polish and responsiveness

Desktop Improvements

  • Sidebar animation refinements — Avoid clipping during open, animate titlebar controls, improved spacing
  • Fork copies prompt — Forking a session now copies the prompt into the new session
  • Session list spinner — Better transition animations for session list loading states
  • Optimistic prompt submit — Improved UX for prompt submission feedback
  • Cursor session history loading — Uses cursor-based pagination for better performance

Other Changes

  • AuthService refactored — Now uses Effect pattern for consistency
  • ProviderAuthService refactored — Migrated to Effect pattern
  • OpenRouter warning removed — Cleaned up TUI output
  • Console command hidden — Removed from help output
  • Provider list reordered — Improved ordering in providers login
  • Internationalization synced — Updated translations across the app
  • CI test workers increased — Faster end-to-end test execution

Update: npm install opencode@1.2.26 or check the release page for platform-specific instructions.

Source: OpenCode