Release version 0.18.1
- feat(acp): Connect AI providers to OpenCode directly from its agent settings. Browse the models.dev catalog and bring a well-known provider online with just an API key, or define your own custom OpenAI-compatible provider. Connected providers are organized into catalog and custom lists — each with enable/disable, edit, and disconnect — and the model picker now surfaces context-window and reasoning metadata. Keys are written only to OpenCode's own auth.json.
- feat(office): Office Tools (officecli) now install on Windows, not just macOS and Linux. Installation runs the vendor's official script (mirror-first, with a GitHub fallback) and streams its output live into the Office Tools settings page, so you can watch progress instead of waiting on a spinner.
- fix(office): Made the officecli installer far more robust — the whole install is now bounded by a timeout (and kills the entire process tree, including the background binary download, if it expires), a stalled mirror fails over to GitHub instead of hanging, and downloads on older, locked-down, or non-English Windows hosts now succeed and log correctly.
- fix(office): Live document preview for agent-generated .docx/.xlsx/.pptx files now opens automatically whenever a workspace folder is open — even with the file side panel closed.
- fix(db): Fixed an intermittent "no such column" migration failure that could surface under load, by applying schema migrations on a dedicated connection before the runtime read pool opens.
发布版本 0.18.1
- 功能(ACP):可直接在 OpenCode 的智能体设置中接入 AI 供应商。 浏览 models.dev 模型目录,用一个 API Key 即可接入知名供应商;也可自定义兼容 OpenAI 接口的供应商。已接入的供应商分为「目录」与「自定义」两类分别管理,各自支持启用 / 停用、编辑与断开连接;模型选择器现在还会显示上下文窗口与推理能力等信息。密钥仅写入 OpenCode 自己的 auth.json。
- 功能(Office):Office 工具(officecli)现在支持在 Windows 上安装,不再仅限 macOS 与 Linux。安装会运行供应商官方脚本(优先镜像、回退 GitHub),并将安装输出实时显示在「Office 工具」设置页,让你能看到进度而非干等。
- 修复(Office):大幅增强 officecli 安装的稳健性——整个安装过程现在有超时上限(超时会终止包括后台二进制下载在内的整个进程树),卡住的镜像会自动回退到 GitHub 而非一直挂起,在较老、受限或非英文的 Windows 主机上也能正常下载并正确记录日志。
- 修复(Office):智能体生成的 .docx/.xlsx/.pptx 文档实时预览,现在只要打开了工作区文件夹就会自动弹出——即便文件侧边栏处于关闭状态。
- 修复(数据库):修复了高负载下偶发的「no such column」迁移失败——schema 迁移改为在运行时连接池打开之前,使用一条专用连接执行。