v1.2.16:远程工作区 + 大量桌面端改进
发布日期:2026-03-03
🎯 一句话总结
新增远程工作区支持(实验性)、GPT-5.4 模型、413 错误自动恢复,桌面端重构为 SolidJS 带来性能飞跃。
✨ 新功能:远程工作区支持(实验性)
这次更新了什么?
OpenCode 开始支持远程工作区,可以在服务器上运行 OpenCode,本地通过 Desktop 连接。
远程工作区是什么?
类似 VS Code Remote,你可以:
- 在云服务器上运行 OpenCode(利用服务器算力)
- 本地 Desktop 连接远程实例(本地 UI 体验)
- 在不同机器间切换,会话状态保持
如何使用?
目前为实验性功能,需通过配置开启:
bash
# 启用远程工作区(实验性)
opencode workspace-serve⚠️ 此功能仍在开发中,不建议生产环境使用。
✨ 新功能:GPT-5.4 支持
这次更新了什么?
OpenCode 现已支持 OpenAI 最新的 GPT-5.4 模型。
如何使用?
确保已配置 OpenAI API Key,然后在 OpenCode 中输入 /models,选择 gpt-5.4 即可。
🐛 重要修复:413 错误自动恢复
之前的问题
当对话上下文过长时,API 可能返回 413 Request Entity Too Large 错误,导致对话中断。
现在的情况
OpenCode 会自动检测 413 错误,并触发上下文压缩(compaction),压缩后自动重试,无需手动干预。
✨ 改进:工具调用状态显示
这次更新了什么?
TUI 界面现在显示待执行的工具数量,而不是模糊的 "Running..." 提示。
这有什么用?
- 一眼看出还有几个工具在执行
- 更精确的进度感知
- 判断 AI 是否在"卡住"还是"在工作"
🖥️ Desktop 大更新
重大重构:迁移到 SolidJS
Desktop 应用从 React 迁移到 SolidJS,带来:
- 更快的响应速度:组件更新更高效
- 更小的内存占用:SolidJS 比 React 轻量
- 更流畅的动画:60fps 动画体验
新功能:紧凑 UI 模式
启用紧凑模式后,UI 元素间距更小,适合小屏幕或喜欢紧凑布局的用户。
其他改进
- 添加土耳其语支持
- 命令面板新增"最近项目"区域
- 打开项目时使用 PowerShell(Windows)
- 大量 UI 细节优化
📊 要不要升级?
| 情况 | 建议 |
|---|---|
| Desktop 用户 | ✅ 强烈推荐(性能提升明显) |
| 使用 OpenAI GPT-5.4 | ✅ 推荐 |
| 遇到过 413 错误 | ✅ 推荐 |
| TUI 用户 | ⚪ 可选升级 |
⬆️ 升级命令
bash
opencode upgrade📋 技术细节
点击展开原始 Release Notes
Core
- Add workspace_id to session table
- Add WorkspaceContext to core
- Basic implementation of remote workspace support
- Change keybindings to navigate between child sessions
- Normalize trailing slashes in auth login URLs (@elithrar)
- Upgrade OpenTUI to v0.1.86 and enable markdown rendering by default
- Avoid Gemini combiner schema sibling injection
- Forward metadata options to Cloudflare AI Gateway provider (@ryanskidmore)
- Clone part data in Bus event to preserve token values (@ryanskidmore)
- Recover from 413 Request Entity Too Large errors via automatic compaction (@bentrd)
- Show human-readable message for HTML error responses (@rianvdm)
- Kill orphaned MCP child processes and expose OPENCODE_PID on shutdown (@ryanwyler)
TUI
- Replace curved arrow with straight arrow for better terminal compatibility
- Show pending tool call count in TUI instead of generic 'Running...' message
- Use arrow indicator for active tool execution in TUI
- Disable session navigation commands when no parent session (@jerome-benoit)
- Fixed project ID conflict and updated handling for same session ID (@noamzbr)
- Improve task tool display with subagent keybind hints and spinner animations
- Add Go provider list command
Desktop
- Refactor app to use SolidJS
- Add compact UI to the app (@neriousy)
- Add Turkish locale support for app and UI packages (@vaur94)
- Add recent projects section to command palette (@neriousy)
- Open app in PowerShell instead of Command Prompt on Windows (@neriousy)
- Polish Turkish translations (@vaur94)
- Fallback to synthetic icon for unknown provider IDs (@rexdotsh)
- Add Warp to the open menu
- Auto-accept permissions in app
- Better diff and code comments in app
Thank you to 17 community contributors

