OpenCode v1.2.22: TUI & Desktop Stability Fixes
OpenCode v1.2.22 fixes MCP toggling, TTY corruption, and desktop UI issues. Adds database migration skip flag and improves session caching.
TL;DR
- Fixed broken MCP toggling in TUI and TTY corruption on exit
- Desktop UI polish: sidebar colors, hover flicker, session caching improvements
- New database migration flag to skip migrations when needed
New
- OPENCODE_SKIP_MIGRATIONS flag — bypass database migrations when you need to skip the upgrade process
- Beta/stable database sharing — beta channel can now share the same database as stable, reducing duplication
Fixed
- MCP toggling in TUI — /mcp command was broken, now works as expected (thanks @natewill)
- TTY corruption on exit — double cleanup was corrupting terminal output, fixed (thanks @tobwen)
- TUI premature termination — added guards to prevent early exit
- Working directory canonicalization — current working directory now properly normalized after directory changes
- Desktop sidebar background — color now displays correctly when collapsed
- Hover flicker on menus — suppressed hover effects when opening project menu or right-clicking
- Messages not loading reliably — improved message loading consistency
- Session cache bloat — pruned and evicted stale app session caches
- Review panel transitions — fixed animation glitches in app
- Empty state alignment — centered empty states vertically in session view
UI Improvements
- New session logo — OpenCode logo now appears on new session screen for immediate app identification
- Prompt control docking — auto-accept moved after thinking, Add file moved to bottom-left
- Titlebar balance — center content no longer squeezed by long side content
- Review panel messaging — improved messaging for projects without version control
- Terminal buffer trimming — retained desktop terminal buffers now trimmed
Update via: npm install -g opencode@latest or check your package manager for v1.2.22
Source: OpenCode