Skip to content

v1.4.4:阿里巴巴提供商 + 会话导出脱敏 + UTF-8 BOM 保留

发布日期:2026年4月15日


🎯 一句话总结

新增阿里巴巴(通义千问)提供商(含缓存支持),opencode export --sanitize 可脱敏导出,编辑文件时保留 UTF-8 BOM,图片不再计入配额。


🆕 新功能:阿里巴巴提供商

这次更新了什么?

新增阿里巴巴(Alibaba / 通义千问)作为内置提供商,支持提示词缓存。

这有什么用?

可以直接在 OpenCode 中使用通义千问的模型,缓存支持能降低重复请求的 Token 消耗。


🆕 新功能:会话导出脱敏

这次更新了什么?

TUI 新增 opencode export --sanitize 命令,自动脱敏会话中的 PII(个人身份信息)和机密数据。

这有什么用?

需要分享会话给同事或在社区求助时,一键脱敏,避免泄露 API Key、密码等敏感信息。


🆕 改进:图片不计入配额

这次更新了什么?

读取图片文件不再消耗配额(quota)。

这有什么用?

发送截图给 AI 分析时,不用担心图片消耗你的使用配额。


🆕 改进:UTF-8 BOM 保留

这次更新了什么?

通过编辑、补丁或重写工具修改文件时,UTF-8 BOM(Byte Order Mark)会被保留。

这有什么用?

某些 Windows 工具或旧项目依赖 BOM 标记,之前编辑后会丢失 BOM,导致这些工具识别文件编码出错。


🆕 改进:会话压缩保留近期上下文

这次更新了什么?

会话压缩时,最近的对话轮次会被原样保留,而不是全部压缩。

这有什么用?

压缩后的会话在后续追问时,仍然保留最近的详细上下文,不会丢失刚刚讨论的关键细节。


🔧 问题修复

  • 快照忽略 .gitignore:快照现在完全遵守 .gitignore 规则,包括之前已跟踪的文件
  • OpenAI 兼容提供商推理摘要:修复了推理摘要注入的兼容性问题
  • ACP 客户端重复消息:防止 ACP 客户端中出现重复的用户消息
  • Desktop Windows 挂起:修复了 Windows 桌面版关闭时挂起的问题
  • 会话权限动态更新:会话运行中可以更新项目权限

📊 要不要升级?

情况建议
使用通义千问模型✅ 强烈推荐
需要脱敏导出会话✅ 强烈推荐
编辑含 BOM 的文件✅ 推荐
正常使用中✅ 推荐

⬆️ 升级命令

bash
opencode upgrade

📋 技术细节

点击展开完整更新列表

Core

  • Restored instance and logger context during prompt runs so prompt-time tools and logging behave correctly.
  • Kept GitHub Copilot compaction requests valid.
  • Restored the flat reply shape for question API responses.
  • Persisted MCP OAuth connections that finish immediately, so authenticated servers stay connected.
  • Prevented duplicate user messages in ACP clients.
  • Stopped emitting user_message_chunk events during session and prompt turns in ACP clients. (@RAIT-09)
  • Fixed reasoning summary injection for @ai-sdk/openai-compatible providers. (@nazarhnatyshen)
  • Added the experimental compaction.autocontinue hook to stop auto-continuing after compaction.
  • Added Alibaba provider support with cache support.
  • Snapshots now fully respect .gitignore, including previously tracked files.
  • Reading images no longer counts against quota.
  • Sessions can now update project permissions mid-run. (@remorses)
  • Enabled thinking for zhipuai-coding-plan and fixed Korean IME truncation. (@claudianus)

TUI

  • Added opencode export --sanitize to redact PII and confidential transcript data.
  • Fixed diff line number contrast in built-in themes.
  • Plugin auth login now asks for an API key when a plugin needs authorization. (@goniz)
  • Plugin auth no longer asks for an API key when the plugin has no authorize method. (@goniz)

Desktop

  • Fixed the Windows desktop backend hanging before shutdown.

SDK

  • The JavaScript SDK now throws a clear error when an older server responds with HTML instead of the API.

Extensions

  • Plugins can now register custom workspace adaptors that appear in workspace creation.

Thank you to 9 community contributors (see GitHub release for full list)


← 返回更新日志