v1.2.27:修复 Worktree 会话丢失
发布日期:2026-03-16
🎯 一句话总结
修复 Git Worktree 和孤儿分支的会话丢失问题,增加 Chunk 超时时间。
🐛 重要修复:Worktree 会话丢失
之前的问题
在 Git Worktree 配置中切换工作树时,会话会丢失。
现在的情况
修复后,Worktree 可以正确读取本地工作区 ID,会话在所有 Worktree 间保持同步。
这有什么用?
如果你使用 Git Worktree 管理多个并行分支,不会再遇到切换后对话丢失的问题。
🐛 重要修复:孤儿分支会话丢失
之前的问题
在孤儿分支(没有共同提交的分支)上创建的会话可能会丢失。
现在的情况
修复后,孤儿分支的会话也能正确保存和恢复。
🔧 改进:增加 Chunk 超时时间
这次更新了什么?
将默认的 Chunk 超时时间从 2 分钟增加到 5 分钟。
这有什么用?
处理大型代码库或复杂 LLM 响应时,不会因为超时而中断。
🔧 改进:删除遗留权限模块
这次更新了什么?
清理了遗留的权限模块代码,简化权限系统。
这有什么用?
代码更精简,维护成本降低。
🐛 修复:权限中止时清理
之前的问题
权限请求中止时,悬挂的条目没有正确清理。
现在的情况
中止权限请求时会正确清理相关资源。
📱 Desktop 应用改进
- 处理多行 Web 粘贴到提示词编辑器
- 修复长文件名与操作按钮重叠问题
🔧 改进:VCS 监视器
这次更新了什么?
修复 VCS 监视器的条件判断逻辑。
这有什么用?
文件变更检测更加准确可靠。
📊 要不要升级?
| 情况 | 建议 |
|---|---|
| 使用 Git Worktree | ✅ 强烈推荐 |
| 经常切换分支 | ✅ 推荐 |
| 遇到过程序卡顿 | ✅ 推荐 |
| 所有用户 | ✅ 推荐 |
⬆️ 升级命令
bash
opencode upgrade📋 技术细节
点击展开原始 Release Notes
Core
- Fixed VCS watcher if statement logic
- Delete legacy permission module
- Clean up pending entry when question is aborted
- Remove SIGHUP exit handler
- Effectify PermissionNext and fix InstanceState ALS bug
- Inline branded ID schemas
- Refactor QuestionService to use effects
- Ensure that compaction message is tracked as agent initiated
- Increase default chunk timeout from 2 minutes to 5 minutes
- Fix lost sessions across worktrees and orphan branches
- Make worktrees read the project ID from local workspace
Desktop
- Remove open label from UI
- Handle multiline web paste in prompt composer
Thank you to 4 community contributors:
- @michaeldwan: fix(opencode): lost sessions across worktrees and orphan branches
- @marcusschiesser: fix(ui): prevent long filenames from overlapping actions
- @Gojer16: docs(es): fix Spanish intro page translation, grammar, and terminology
- @erikengervall: docs: Add opencode-firecrawl to ecosystem documentation

