Skip to content

v1.14.19:并发编辑保护 + NVIDIA 提供商 + Windows ARM64 ripgrep

发布日期:2026年4月20日


🎯 一一句话总结

修复了并行编辑同一文件时的数据丢失问题,新增 NVIDIA 提供商,支持 Windows ARM64 的 ripgrep,会话压缩现在保留近期原文。


🆕 新功能:NVIDIA 提供商

这次更新了什么?

新增 NVIDIA 作为内置提供商选项,包括连接文档和必要的归属标头。

这有什么用?

NVIDIA NIM 平台提供多种 AI 模型的推理服务。如果你使用 NVIDIA 的 API,现在可以在 OpenCode 中直接配置使用。


🆕 改进:并发编辑保护

这次更新了什么?

当 AI 并行编辑同一个文件时(比如同时修改多行),现在会保留所有修改,而不是后一个覆盖前一个。

这有什么用?

AI 在处理大型文件时可能同时发起多个编辑请求。之前可能导致部分修改被覆盖丢失,现在所有修改都会被保留。


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

这次更新了什么?

会话压缩时,最近的对话轮次会被原样保留(而非压缩为摘要),并新增 preserve_recent_tokens 配置项控制保留的 Token 预算。

这有什么用?

压缩后追问时,近期的对话细节仍然完整可用,不会丢失刚讨论的关键上下文。


🔧 问题修复

编译二进制启动崩溃

问题:编译后的二进制文件因循环的会话 Schema 依赖导致启动失败。

修复:消除了循环依赖。


Windows ARM64 ripgrep

问题:Windows ARM64 版本缺少 ripgrep 支持。

修复:添加了 Windows ARM64 的 bundled ripgrep 支持。


📊 要不要升级?

情况建议
遇到文件编辑丢失✅ 强烈推荐
使用 NVIDIA NIM✅ 推荐
Windows ARM64 用户✅ 推荐
正常使用中✅ 推荐

⬆️ 升级命令

bash
opencode upgrade

📋 技术细节

点击展开完整更新列表

Core

  • Prevented compiled binaries from failing on startup because of a circular session schema dependency.
  • Renamed the compaction setting to preserve_recent_tokens for the budget that keeps recent turns verbatim.
  • Preserved concurrent edits to the same file instead of letting parallel edits overwrite each other.
  • Fixed managed installs on Windows and added bundled ripgrep support for Windows ARM64.
  • Added NVIDIA as a built-in provider option, including connection docs and required attribution headers. (@anniesurla)
  • Kept recent conversation turns verbatim during session compaction so follow-up work keeps more local context.
  • Fell back to summarizing the full conversation when preserved recent turns include too much media to fit safely.

Desktop

  • Reduced loading flicker when opening projects and bringing prompt controls online.
  • Added a separate terminal font setting and bundled JetBrainsMono Nerd Font Mono.

Thank you to 1 community contributor:

  • @anniesurla: feat(provider): add NVIDIA to popular providers, docs, and attribution headers (#22927)

← 返回更新日志