OpenCode:连接支持图像的提供方后默认启用图像生成
连接了支持图像的提供方时,experimental_image_generate 默认启用。
- 事件类型
- 功能更新
- 版本
- v2.2.2
- 官方发布
- 本站整理
本次变化
共 5 条要点
连接了支持图像的提供方时,experimental_image_generate 默认启用;当已连接的提供方支持图像模型时,智能体无需额外配置即可使用 experimental_image_generate。
官方原文 · c1 c2
Enabled `experimental_image_generate` by default when an image-capable provider is connected.
官方原文 · c1 When a connected provider supports image models, agents can now use `experimental_image_generate` without additional configuration.
官方原文 · c2 可通过 experimental.image_generate.model 设置其首选模型。
官方原文 · c3
Set its preferred model through `experimental.image_generate.model`.
官方原文 · c3 新会话界面上的 Git 分支现在可直接打开当前项目的工作树选择器;时间线引用、终端引用和浏览器批注现在共用一个紧凑的可选评论编辑器,同时来源高亮仍附着在本地草稿上。
官方原文 · c4 c5
Made the Git branch on the new-session screen open the current project’s worktree picker directly.
官方原文 · c4 Timeline quotes, terminal quotes, and browser annotations now share a compact optional-comment editor, while source highlights remain attached to local drafts.
官方原文 · c5 client.experimental.schedule.create 增加了 if 和 until 输入,以及计划检查结果和输出字段;SessionInfo.time.busy 现已暴露,用于表示最近一次执行的开始时间。
官方原文 · c6 c7
Added `if` and `until` inputs for `client.experimental.schedule.create`, plus schedule check results and output fields.
官方原文 · c6 Exposed `SessionInfo.time.busy` for the latest execution’s start time.
官方原文 · c7 会话被分叉或导入时,媒体内容会被保留;工作目录已不存在的持久终端请求会被拒绝。
官方原文 · c8 c9
Preserved media when sessions are forked or imported.
官方原文 · c8 Rejected persistent terminal requests whose working directory no longer exists.
官方原文 · c9
变化明细
下表字段直接取自官方原文,保持原文语言,不做翻译。
| 编号 | 主体 | 动作 | 对象 | 范围 |
|---|---|---|---|---|
| c1 | experimental_image_generate | enabled by default | image generation tool | when an image-capable provider is connected |
| c2 | agents | can use without additional configuration | experimental_image_generate | when a connected provider supports image models |
| c3 | user | set preferred model | experimental_image_generate | through experimental.image_generate.model |
| c4 | Git branch on the new-session screen | opens | current project’s worktree picker directly | new-session screen |
| c5 | timeline quotes, terminal quotes, and browser annotations | share | compact optional-comment editor | source highlights remain attached to local drafts |
| c6 | client.experimental.schedule.create | added | if and until inputs, schedule check results and output fields | client.experimental.schedule.create |
| c7 | SessionInfo.time.busy | exposed | latest execution’s start time | latest execution |
| c8 | sessions | preserved | media | when sessions are forked or imported |
| c9 | persistent terminal requests | rejected | requests whose working directory no longer exists | working directory no longer exists |
版本时间线
同一工具在本站已发布的快讯,按官方发布日期由新到旧。
- 当前连接支持图像的提供方后默认启用图像生成
- 桌面插件可在设置›扩展›插件中管理
关于这个工具
相关教程
来源与说明
官方原文 · github.com/anomalyco/opencode/releases/tag/v2.2.2
AI 整理说明
本条由 AI 依据官方来源整理并经自动核对;发现错误请 反馈。