Skip to content

v1.14.20:系统主题修复 + HTTP API /config 端点

发布日期:2026年4月21日


🎯 一句话总结

修复了 TUI 系统主题回归问题,新增 HTTP API 的 GET /config 端点,Windows 下 Node 运行的动态导入修复。


🆕 新功能:HTTP API /config 端点

这次更新了什么?

实验性 HTTP API 新增 GET /config 端点。

这有什么用?

通过 API 可以读取当前 OpenCode 的配置信息,适合自动化脚本和工具集成。


🔧 问题修复

TUI 系统主题回归

问题:TUI 的系统主题检测出了回归问题,可能导致主题切换不正确。

修复:修复了系统主题的检测逻辑。


Windows Node 动态导入

问题:Windows 上使用 Node.js 运行时,本地动态导入(用于插件和工具加载)失败。

修复:修复了 Windows + Node 的本地动态导入。

对你有什么影响:Windows 上安装的插件和自定义工具能正常加载。


Desktop 控件闪烁

问题:Desktop 版的提示词控件每次渲染都会重播淡入动画。

修复:控件不再重复播放动画。


📊 要不要升级?

情况建议
使用 HTTP API✅ 推荐
Windows + Node 用户✅ 推荐
Desktop 版用户✅ 推荐
正常使用中可以等下次

⬆️ 升级命令

bash
opencode upgrade

📋 技术细节

点击展开完整更新列表

Core

  • Fixed a system theme regression in the TUI.
  • Added GET /config to the experimental HTTP API.
  • Fixed local dynamic imports on Windows when running under Node, improving plugin and tool loading.

TUI

  • Fixed permission replies using remote workspaces so they are sent to the correct workspace.

Desktop

  • Stopped prompt controls from replaying their fade-in animation on every render.
  • Added a setting to hide the session progress bar while the agent is working.
  • Fixed the Select Server dialog layout so the server list and actions size correctly. (@OpeOginni)
  • Fixed synced project updates so desktop project state changes apply reliably.
  • Fixed sidebar project avatars to fall back to icon.url when no override is set. (@ysm-dev)

SDK

  • Fixed the WorkspaceAdaptor.create type to include the env parameter. (@jamesmurdza)

Thank you to 4 community contributors:

  • @heimoshuiyu: fix(ui): use parentID matching instead of positional scan for assistant messages (#23093)
  • @ysm-dev: fix(app): fall back to icon.url in sidebar avatar (#18747)
  • @jamesmurdza: fix(plugin): add env parameter to WorkspaceAdaptor.create type (#23235)
  • @OpeOginni: fix(desktop): adjust layout properties in DialogSelectServer component (#23589)

← 返回更新日志