v1.2.17:默认显示滚动条 + 子进程清理
发布日期:2026-03-04
🎯 一句话总结
TUI 默认显示滚动条,修复关闭时遗留子进程的问题,Desktop 多项 UI 优化。
✨ 改进:默认显示滚动条
这次更新了什么?
TUI 界面现在默认显示滚动条,之前需要手动开启。
这有什么用?
- 一眼看出当前内容在页面中的位置
- 判断还有多少内容未显示
- 更直观的长对话导航
🐛 重要修复:子进程清理
之前的问题
关闭 OpenCode 时,可能会遗留孤立的子进程(如 MCP server),占用系统资源。
现在的情况
关闭时会正确清理所有子进程,避免资源泄漏。
✨ 改进:--attach 参数验证
这次更新了什么?
使用 opencode run --attach 时,会验证指定的 Agent 是否存在。
这有什么用?
避免因 Agent 名称拼写错误导致的运行时问题。
🖥️ Desktop 改进
- 移除待办事项的模糊效果
- 加载会话时自动滚动到底部
- 正确关闭终端标签页
- 延迟 dock 动画
- 侧边栏移除 diff 行显示
📊 要不要升级?
| 情况 | 建议 |
|---|---|
| 遇到过子进程残留 | ✅ 推荐 |
| Desktop 用户 | ✅ 推荐 |
| TUI 用户 | ⚪ 可选升级 |
⬆️ 升级命令
bash
opencode upgrade📋 技术细节
点击展开原始 Release Notes
Core
- Rework workspace integration and adaptor interface
- Clarify output capture guidance in bash tool documentation
TUI
- Show scrollbar by default
- Prevent orphaned opencode subprocesses on shutdown
- Validate agent when running with attach flag (@alberti42)
Desktop
- Remove blur from todos in app
- Delay dock animation on session load
- Remove diff lines from sessions in sidebar
- Loading session should be scrolled to the bottom
- Close terminal tabs properly
Thank you to 3 community contributors

