OpenCode v1.1.50: Memory Leaks & Trinity Support
v1.1.50 fixes critical memory leaks, adds Trinity model support and shell.env hooks, and improves desktop session management with 18 community contributions.
TL;DR
- Fixed memory leaks from AbortController closures
- Added Trinity model system prompt support and shell.env hook for environment manipulation
- Desktop improvements: session tab restoration, custom provider overflow fixes, better UI spacing
New
- Trinity model system prompt support — agents can now use Trinity's system prompts for better control over model behavior
- shell.env hook — manipulate environment variables in tools and shell commands directly
- Skills from .agents/skills directories — read and load skills from dedicated project directories
- Theme colors in agent customization — customize agent appearance with theme color support
- --thinking flag for run command — display reasoning blocks in CLI output
- Session tab restoration — desktop app now restores previously opened session tabs on restart
- .slnx LSP root detection — added C#/F# language server support for .slnx project files
Fixed
- Memory leaks from AbortController closures — prevented resource exhaustion in long-running processes
- Provider headers not applied to fetch requests — config headers now correctly passed through
- Gemini schema validation for nested arrays — handles complex nested array items properly
- Gemini schema property stripping — removes invalid properties and required fields from non-object types
- Plugins always reinstalled — fixed unnecessary reinstallation on every run
- Terminal serialization bug — desktop app terminal state now persists correctly
- Model selector truncating text — displays full model names without cutoff
- Custom providers overflow in app — UI layout fixed for long provider lists
- Clipboard fallback behavior — always falls back to native clipboard after OSC52 fails
- Empty prompt with review comments — desktop now allows submitting review comments without text
- Edit project dialog icon visibility — icon now shows on hover as intended
- MCP tools sanitization — ensures MCP tools are properly validated
- k2p5 excluded from reasoning variants — model no longer appears in reasoning model lists
Breaking Changes
- CLI run command now non-interactive — run command no longer accepts interactive input; use appropriate flags instead
Update with: npm install -g opencode@latest or check the release page for your platform.
Source: OpenCode