Skip to content

v1.14.17:可执行权限保留 + 附件类型检测

发布日期:2026年4月19日


🎯 一句话总结

Docker 构建时保留可执行权限,附件类型改为从文件内容检测,Anthropic Bedrock Opus 4.7 默认使用摘要显示,Fork 会话支持全量选项。


🆕 改进:附件类型智能检测

这次更新了什么?

附件的类型现在从文件内容检测,而不是依赖文件扩展名。

这有什么用?

即使文件扩展名缺失或错误(比如 .txt 改名为 .jpg),OpenCode 仍然能正确识别图片和 PDF 文件并发送给 AI。


🆕 改进:Fork 支持全量选项

这次更新了什么?

从会话对话框 Fork 会话时,新增了「全量会话」选项。

这有什么用?

之前 Fork 只能从当前消息开始分叉。现在可以选择复制完整的会话历史。


🔧 问题修复

插件重复安装

问题:插件比必要的更频繁地触发重新安装。

修复:优化了插件的安装检测逻辑。


GitHub Copilot Anthropic Haiku

问题:GitHub Copilot 的 Anthropic Haiku 模型因为不支持工具流式传输而失败。

修复:禁用了该模型的工具流式传输。


📊 要不要升级?

情况建议
使用 Docker 构建✅ 推荐
文件扩展名不规范✅ 推荐
使用 Fork 功能✅ 推荐
正常使用中可以等下次

⬆️ 升级命令

bash
opencode upgrade

📋 技术细节

点击展开完整更新列表

Core

  • Preserve executable permissions before Docker builds when artifacts lose their exec bits.
  • Fix plugins reinstalling more often than needed.
  • Use display: summarized by default for Anthropic Bedrock Opus 4.7 requests.
  • Detect attachment types from file contents so images and PDFs still work with incorrect or missing extensions.
  • Support OTEL_RESOURCE_ATTRIBUTES for custom telemetry resource tags.
  • Fix package installs when node_modules is missing.
  • Fix GitHub Copilot Anthropic Haiku requests by disabling unsupported tool streaming.

TUI

  • Add a full-session option when forking from the session dialog.
  • Show the session ID in the sidebar on non-production channels.

Thank you to 1 community contributor:

  • @OpeOginni: fix(desktop): adjust ui tool diff sticky header offset (#23149)

← 返回更新日志